{hero}

columns.searchPanes.header

Since: SearchPanes 1.0.0

Set the title of the SearchPane.
Please note - this property requires the SearchPanes extension for DataTables.

Description

As standard, SearchPanes will set the headers of the pane based on the title of the corresponding column. This option customises that text in the pane's header.

Type

string

Description:

By setting the columns.searchPanes.header option to a string of your choice you can change the title shown in the Pane.

Default

  • Value: undefined

The default value for the columns.searchPanes.header parameter is undefined. By default the pane will use the title of the column for its header.

Example

Set the Header of the Pane to a custom string:

new DataTable('#myTable', {
	layout: {
		top1: 'searchPanes'
	},
	columnDefs: [
		{
			searchPanes: {
				header: 'Length of Life'
			},
			targets: [3]
		}
	]
});