{hero}

language.searchPanes.count

Since: SearchPanes 1.0.0

Set the message to be displayed in the count column when not 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.count, 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.count changes what will be displayed in the count column if not filtering.

Example

Change messages for row count::

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.