{hero}

columns.searchPanes.controls

Since: SearchPanes 1.0.0

Hide the Control buttons and disable searching in the pane of a specific column.
Please note - this property requires the SearchPanes extension for DataTables.

Description

As standard, SearchPanes will be displayed with the control buttons included in the interface and searching will be enabled. However if the value of columns.searchPanes.controls is set to false then the control buttons will no longer be displayed and searching will be disabled.

The control buttons can be hidden and searching disabled for all of the panes by making use of searchPanes.controls.

Type

boolean

Description:

By setting the columns.searchPanes.controls option to false the control buttons will be hidden in the pane and searching disabled for that specific column.

Default

  • Value: true

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

Example

Hide control buttons and disabled searching for the 5th columns pane:

new DataTable('#myTable', {
	layout: {
		top1: 'searchPanes'
	},
	columnDefs: [
		{
			searchPanes: {
				controls: false
			},
			targets: [4]
		}
	]
});

Related

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