{hero}

language.searchPanes.countFiltered

Since: SearchPanes 1.0.0

Set the message to be displayed in the count column when searching.
Please note - this property requires the SearchPanes extension for DataTables.

Description

SearchPanes will set the count column to display the total number of different values visible in the column when no filtering is taking place. It is a global setting that will impact all instances of SearchPanes on a DataTable (it should be noted that it is uncommon to have more than one instance!). The per-instance parameter is searchPanes.i18n.countFiltered, which also defines the default.

This option is useful as the language object can be loaded by Ajax, or set locally and define all language strings used by DataTables and its extensions.

Type

string

Description:

searchPanes.i18n.countFiltered changes what will be displayed in the count column if the searchPanes.viewTotal option is set to true and filtering is taking place.

Example

Change messages for viewTotal::

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

Related

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