{hero}

searchPanes.i18n

Since: SearchPanes 1.0.0

Container for options for language.
Please note - this property requires the SearchPanes extension for DataTables.

Description

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

Type

string

Description:

This option is capable of holding all of the sub-options for languages for the panes for specific applications.

Default

  • Value: object

The default value for the searchPanes.i18n is an object containing all of the default values for the searchPanes.i18n.* options. These are the default values that SearchPanes uses.

Examples

Alter title messages: :

new DataTable('#myTable', {
	layout: {
		top1: 'searchPanes'
	},
	searchPanes: {
		i18n: {
			title: {
				_: 'Filters Selected - %d',
				0: 'No Filters Selected',
				1: 'One Filter Selected'
			}
		}
	}
});

Change messages for viewTotal::

new DataTable('#myTable', {
	layout: {
		top1: 'searchPanes'
	},
	searchPanes: {
		viewTotal: true,
		i18n: {
			count: '{total} found',
			countFiltered: '{shown} ({total})'
		}
	}
});

Related

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