searchPanes.panes.options
Define the options for custom panes.
Please note - this property requires the SearchPanes extension for DataTables.
Description
This option is an alias to searchPanes.panes.options
, 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
for full details of this option.
Type
Array
- Description:
The
searchPanes.panes.options
array allows custom options to be declared for Custom Panes.
Default
- Value:
Undefined
The default value of searchPanes.panes.options
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';
},
className: 'tokyo'
}
]
}
]
}
});
Related
The following options are directly related and may also be useful in your application development.