searchPanes.i18n.clearMessage
Set the message to be displayed in the Clear button.
Please note - this property requires the SearchPanes extension for DataTables.
Description
This option defined the text to be shown by the clear button in SearchPanes.
This option will default to the value given by language.searchPanes.clearMessage
, which should generally be preferred over this option as the language strings can be loaded by Ajax and shared for the whole table, but if needed, this option is available to override that on a per instance basis.
Type
string
- Description:
Setting the
searchPanes.i18n.clearMessage
option to a string of your choice allows the Clear All button to have custom text within it.This property is passed through an
i18n()
function.
Default
- Value:
undefined
The default value for the searchPanes.i18n.clearMessage
parameter is "Clear All"
.
Example
Change message for the Clear button:
new DataTable('#myTable', {
layout: {
top1: 'searchPanes'
},
searchPanes: {
i18n: {
clearMessage: 'Obliterate Selections'
}
}
});