{hero}

searchPanes.i18n.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 option searchPanes.i18n.emptyMessage. This is useful as it's a more user-friendly way than just having a blank cell. The value is passed through the i18n() function.

This value supersedes searchPanes.emptyMessage (deprecated) and columns.searchPanes.emptyMessage. If it is desired for those values to be used searchPanes.i18n.emptyMessage should be undefined, as it is by default. When this is the case the two previous options will be used.

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

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.

Default

  • Value: undefined

The default value for the searchPanes.i18n.emptyMessage parameter is undefined. This means that the value of searchPanes.emptyMessage will be used. That value is \<i\>No Data\</i\>.

Example

Altering Empty Message:

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

Related

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