{hero}

searchPanes.i18n.collapseMessage

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.

Description

This option is an alias to searchPanes.i18n.collapseMessage, 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.collapseMessage for full details of this option.

Type

string

Description:

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.

Default

  • Value: Collapse All

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

Example

Change message for the Collapse button:

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