WP_REST_View_Config_Controller::get_table_layout_schema
Returns the layout schema for table-type views (ViewTable, ViewPickerTable).
Метод класса: WP_REST_View_Config_Controller{}
Хуков нет.
Возвращает
array. Schema for a table layout object.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_table_layout_schema();
Список изменений
| С версии 7.1.0 | Введена. |
Код WP_REST_View_Config_Controller::get_table_layout_schema() WP REST View Config Controller::get table layout schema WP 7.1.2
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',
),
),
);
}