Since: SearchPanes 1.0.0

Set the message to be displayed in the Clear button.
Please note - this property requires the SearchPanes extension for DataTables.


This option defines the text to be shown by the clear button in SearchPanes. 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.clearMessage, 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.




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.


Change message for the Clear button:

new DataTable('#myTable', {
	language: {
		searchPanes: {
			clearMessage: 'Obliterate Selections'
	layout: {
		top1: 'searchPanes'