{hero}

searchPanes.i18n.title

Since: SearchPanes 1.0.0

Add internationalisation to the title showing how many panes are selected.
Please note - this property requires the SearchPanes extension for DataTables.

Description

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

Types

string

Description:

As standard searchPanes.i18n.title is simply a string that contains a replacement for the number of selections that have been made.

object

Description:

It is possible to set the value of searchPanes.i18n.title to an object that would allow for the actual text to also change as the number of selections increases.

Default

  • Value: Filters Active - %d

The default value for the searchPanes.i18n.title parameter is Filters Active - %d.

Examples

Alter title messages with an object:

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

Alter title message to be a static string:

new DataTable('#myTable', {
	layout: {
		top1: 'searchPanes'
	},
	searchPanes: {
		i18n: {
			title: 'Select filters below'
		}
	}
});