Since: SearchPanes 1.4.0

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


SearchPanes will set the message to be displayed in the Collapse button to 'Collapse All'. This property allows that message to be configured.

This option will default to the value given by language.searchPanes.collapseMessage, 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.




Setting the searchPanes.i18n.collapseMessage option to a string of your choice allows the Collapse All button to have custom text within it.

This property is passed through an i18n() function.


  • Value: Collapse All

The default value for the searchPanes.i18n.collapseMessage parameter is "Collapse All".


Change message for the Collapse button:

new DataTable('#myTable', {
	layout: {
		top1: {
			searchPanes: {
				i18n: {
					collapseMessage: 'Hide SearchPanes'