{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

SearchPanes will set the title to display the number of filters in the style of the following 'Filters Active - %d'. This property allows that message to be configured.

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

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: {
				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: {
				i18n: {
					title: 'Select filters below'
				}
			}
		}
	}
});