{hero}

searchPanes.controls

Since: SearchPanes 1.0.0

Hide the control buttons and disable searching in all panes.
Please note - this property requires the SearchPanes extension for DataTables.

Description

This option is an alias to searchPanes.controls, 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.controls for full details of this option.

Type

boolean

Description:

By setting the searchPanes.controls option to false the control buttons will be hidden and searching will be disabled in all of the panes.

Default

  • Value: true

The default value for the searchPanes.controls parameter is true, meaning that as standard the control buttons will be included and searching will be active in the panes.

Example

Hide control buttons and disable searching for all panes:

new DataTable('#myTable', {
	layout: {
		top1: 'searchPanes'
	},
	searchPanes: {
		controls: false
	}
});

Related

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