language.searchPanes.clearMessage
Set the message to be displayed in the Clear button.
Please note - this property requires the SearchPanes extension for DataTables.
Description
As standard, SearchPanes will set the message to be displayed in the Clear button to 'Clear All'. This property allows that message to be configured.
Type
string
- Description:
Setting the
languages.searchPanes.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 languages.searchPanes.clearMessage
parameter is "Clear All"
.
Example
Change message for the Clear button:
$(document).ready(function() {
$('#example').DataTable({
language: {
searchPanes: {
clearMessage: 'Obliterate Selections'
}
}
});
});