{hero}

columns.searchPanes.name

Since: SearchPanes 1.1.0

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

Description

As standard, SearchPanes will set the names of the pane based on the title of the corresponding column. This option customises that name. The order of the panes is then set using the searchPanes.order option.

Type

string

Description:

By setting the columns.searchPanes.name option to a string of your choice you can customise the order that the Panes are displayed in.

Default

  • Value: string

The default value for the columns.searchPanes.name parameter is the title of the column that the pane is attached to. In the case of custom panes, the searchPanes.panes.header value is taken as the value of namecolumns.searchPanes.name.

Example

Set the Name of the Pane to a custom string:

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

Related

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