searchPanes.i18n.collapse
Set the message to be displayed in the SearchPanes Button.
Please note - this property requires the SearchPanes extension for DataTables.
Description
This option is an alias to searchPanes.i18n.collapse
, 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.i18n.collapse
for full details of this option.
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.
Default
- Value:
{0: 'SearchPanes', _: 'SearchPanes (%d)'}
The default value for the searchPanes.i18n.collapse
parameter is {0: 'SearchPanes', _: 'SearchPanes (%d)'}
.
Examples
Change message for SearchPanes button which also displays selection count::
new DataTable('#myTable', {
searchPanes: {
i18n: {
collapse: {
0: 'Search Options',
1: 'Search (one selected)',
_: 'Search Options (%d)'
}
}
},
layout: {
topStart: {
buttons: ['searchPanes']
}
}
});
Change message for SearchPanes button to only be a string::
new DataTable('#myTable', {
searchPanes: {
i18n: {
collapse: 'Search Options'
}
},
layout: {
topStart: {
buttons: ['searchPanes']
}
}
});
Related
The following options are directly related and may also be useful in your application development.