{hero}

searchPanes.panes.options.label

Since: SearchPanes 1.0.0

Define the label for an option of a custom pane.
Please note - this property requires the SearchPanes extension for DataTables.

Description

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

Type

string

Description:

The searchPanes.panes.label is the string that will be displayed to the user for the custom option in the pane.

Default

  • Value: Undefined

The default value of searchPanes.panes.options.label is undefined as custom panes must be externally defined.

Example

Define custom pane options:

new DataTable('#myTable', {
	layout: {
		top1: 'searchPanes'
	},
	searchPanes: {
		panes: [
			{
				options: [
					{
						label: 'Accountants in Tokyo',
						value: function (rowData, rowIdx) {
							return rowData[2] === 'Accountant' && rowData[3] === 'Tokyo';
						}
					}
				]
			}
		]
	}
});

Related

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