{hero}

language.info

Since: DataTables 1.10

Table summary information display string.

Description

This string gives information to the end user about the information that is current on display on the page. The following tokens can be used in the string and will be dynamically replaced as the table display updates.

These tokens can be placed anywhere in the string, or removed as needed by the language requires:

  • _START_ - Display index of the first record on the current page
  • _END_ - Display index of the last record on the current page
  • _TOTAL_ - Number of records in the table after filtering
  • _MAX_ - Number of records in the table without filtering
  • _PAGE_ - Current page number
  • _PAGES_ - Total number of pages of data in the table
  • _ENTRIES_ - Plural wildcard from language.entries
  • _ENTRIES-TOTAL_ - language.entries with the plural resolved by the number of records in the table after filtering
  • _ENTRIES-MAX_ - -init language.entries` with the plural resolved by the number of records in the table without filtering

Type

This option can be given in the following type(s):

Default

  • Value: Showing _START_ to _END_ of _TOTAL_ _ENTRIES-TOTAL_

Example

Show page count:

new DataTable('#myTable', {
	language: {
		info: 'Showing page _PAGE_ of _PAGES_'
	}
});

Related

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