language.searchPanes.collapse
Set the message to be displayed in the SearchPanes Button.
Please note - this property requires the SearchPanes extension for DataTables.
Description
SearchPanes will set the SearchPanes Button to display the total number of selections across the panes alongside the SearchPanes title. It is a global setting that will impact all instances of SearchPanes on a DataTable (it should be noted that it is uncommon to have more than one instance!). The per-instance parameter is searchPanes.i18n.collapse
, which also defines the default.
This option is useful as the language
object can be loaded by Ajax, or set locally and define all language strings used by DataTables and its extensions.
Type
string | object
- Description:
searchPanes.i18n.collapse
changes what will be displayed in the text of the SearchPanes Button. It can also display the count of selections across the panes.
Examples
Change message for SearchPanes button which also displays selection count::
new DataTable('#myTable', {
language: {
searchPanes: {
collapse: {
0: 'Search Options',
1: 'Search (one selected)',
_: 'Search Options (%d)'
}
}
},
layout: {
topStart: {
buttons: ['searchPanes']
}
}
});
Change message for SearchPanes collapse button to only be a string::
new DataTable('#myTable', {
searchPanes: {
i18n: {
collapse: 'Search Options'
}
},
layout: {
top1: 'searchPanes'
}
});
Related
The following options are directly related and may also be useful in your application development.