{hero}

search.text

Since: DataTables 2.0

Text for search control.

Description

This option defines the string that will be used for the search input for the table. It should contain a description to let the end user know what the input is for. Please see language.search for full details of the options for this string, including the _INPUT_ replacement string.

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

Example

Provide search input string:

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

Related

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