WP_REST_View_Config_Controller::get_table_layout_schema(): array

In this article

Returns the layout schema for table-type views (ViewTable, ViewPickerTable).

Return

array Schema for a table layout object.

Source

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',
			),
		),
	);
}

Changelog

VersionDescription
7.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.