{hero}

searchPanes.i18n.emptyPanes

Since: SearchPanes 1.0.0

Add internationalisation to the message shown when no panes are displayed.
Please note - this property requires the SearchPanes extension for DataTables.

Description

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

Type

string

Description:

By setting the searchPanes.i18n.emptyPanes option to a message, if there are no panes to be displayed then this message will be displayed in their place.

Default

  • Value: No searchPanes

The default value for the searchPanes.i18n.emptyPanes parameter is "No SearchPanes". This is so that it is easier for devs to realise when there are no SearchPanes to be shown rather than mistaking the lack of a div for an error.

Examples

Alter Empty Pane Message:

new DataTable('#myTable', {
	layout: {
		top1: 'searchPanes'
	},
	searchPanes: {
		i18n: {
			emptyPanes: 'There are no panes to display. :/'
		}
	}
});

Hide the div that is meant to contain the SearchPanes:

new DataTable('#myTable', {
	layout: {
		top1: 'searchPanes'
	},
	searchPanes: {
		i18n: {
			emptyPanes: null
		}
	}
});