searchPanes.filterChanged
Since: SearchPanes 1.2.0
Function to update title text when selections are made.
Please note - this property requires the SearchPanes extension for DataTables.
Description
This option is an alias to searchPanes.filterChanged
, 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.filterChanged
for full details of this option.
Type
function searchPanes.filterChanged(count)
- Parameters:
Name Type Optional 1 count
No Number of options selected in SearchPanes.
Example
Set text for custom element:
new DataTable('#myTable', {
layout: {
top1: 'searchPanes'
},
searchPanes: {
filterChanged: function (count) {
$('.SPDetails').text(
this.i18n(
'searchPanes.collapse',
{ 0: 'Advanced filter', _: 'Advanced filter (%d)' },
count
)
);
}
}
});