{hero}

language.searchPanes.emptyMessage

Since: SearchPanes 1.0.0

Add internationalisation to the empty message displayed as a pane option.
Please note - this property requires the SearchPanes extension for DataTables.

Description

Empty cells will be represented in the panes by the string defined by this option. This is useful as it's a more user-friendly way than just having a blank cell. 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.emptyMessage, 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:

By setting the searchPanes.i18n.emptyMessage option to a string, any empty cells found in the table will be represented in the pane by that string.

Example

Altering Empty Message:

new DataTable('#myTable', {
	language: {
		searchPanes: {
			emptyMessage: '</i></b>EMPTY</b></i>'
		}
	},
	layout: {
		top1: 'searchPanes'
	}
});

Related

The following options are directly related and may also be useful in your application development.