WP_REST_View_Config_Controller::get_table_layout_schema
Returns the layout schema for table-type views (ViewTable, ViewPickerTable).
Method of the class: WP_REST_View_Config_Controller{}
No Hooks.
Returns
array. Schema for a table layout object.
Usage
// protected - for code of main (parent) or child class $result = $this->get_table_layout_schema();
Changelog
| Since 7.1.0 | Introduced. |
WP_REST_View_Config_Controller::get_table_layout_schema() WP REST View Config Controller::get table layout schema code WP 7.1
protected function get_table_layout_schema() {
return array(
'type' => 'object',
'properties' => array(
'styles' => array(
'type' => 'object',
'additionalProperties' => $this->get_column_style_schema(),
),
'density' => array(
'type' => 'string',
'enum' => array( 'compact', 'balanced', 'comfortable' ),
),
'enableMoving' => array(
'type' => 'boolean',
),
),
);
}