{hero}

language.searchPanes.showMessage

Since: SearchPanes 1.4.0

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

Description

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

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.showMessage, 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.

Type

string

Description:

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

This property is passed through an i18n() function.

Example

Change message for the Show button:

new DataTable('#myTable', {
	language: {
		searchPanes: {
			showMessage: 'Display SearchPanes'
		}
	},
	layout: {
		top1: 'searchPanes'
	}
});