{hero}

pageLength.text

Since: DataTables 2.0

Text for page length control.

Description

This option defines the string that will be used for the page length control for the table. It should contain a description to let the end user know what the select is for. Please see language.lengthMenu for full details of the options for this string, including the _MENU_ replacement string.

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

Type

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

Default

Defaults to the language.lengthMenu option's value.

Example

Provide search input string:

new DataTable('#myTable', {
	layout: {
		topEnd: {
			search: {
				text: 'Search table: _MENU_'
			}
		}
	}
});

Related

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