{hero}

searchPanes.initCollapsed

Since: SearchPanes 1.4.0

Collapse the SearchPanes on initialisation.
Please note - this property requires the SearchPanes extension for DataTables.

Description

This option is an alias to searchPanes.initCollapsed, which should be preferred when using DataTables 2+. It can be used to configure SearchPanes regardless of how the panes are inserted into the document (layout or searchPanes).

Please refer to the documentation for searchPanes.initCollapsed for full details of this option.

Type

boolean

Description:

By setting the searchPanes.initCollapsed option to true all of the SearchPanes will be initialised in the collapsed state.

Default

  • Value: false

The default value for the searchPanes.initCollapsed parameter is false, meaning that as standard the searchpanes are not collapsed on initialisation.

Example

Collapse all SearchPanes on initialisation:

new DataTable('#myTable', {
	layout: {
		top1: 'searchPanes'
	},
	searchPanes: {
		initCollapsed: true
	}
});

Related

The following options are directly related and may also be useful in your application development.