Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -508,17 +508,21 @@ protected function get_column_style_schema() {
'type' => 'object',
'properties' => array(
'width' => array(
'type' => array( 'string', 'number' ),
'description' => __( 'The width of the column.' ),
'type' => array( 'string', 'number' ),
),
'maxWidth' => array(
'type' => array( 'string', 'number' ),
'description' => __( 'The maximum width of the column.' ),
'type' => array( 'string', 'number' ),
),
'minWidth' => array(
'type' => array( 'string', 'number' ),
'description' => __( 'The minimum width of the column.' ),
'type' => array( 'string', 'number' ),
),
'align' => array(
'type' => 'string',
'enum' => array( 'start', 'center', 'end' ),
'description' => __( 'The horizontal alignment of the column content.' ),
'type' => 'string',
'enum' => array( 'start', 'center', 'end' ),
),
),
);
Expand All @@ -536,6 +540,7 @@ protected function get_table_layout_schema() {
'type' => 'object',
'properties' => array(
'styles' => array(
'description' => __( 'Column styles keyed by field id, for the columns listed in the view fields. The primary column (title, media, and description fields) takes the width left over by the other columns and ignores these styles.' ),
'type' => 'object',
'additionalProperties' => $this->get_column_style_schema(),
),
Expand Down
Loading