info.search
Appended to the info string when searching is active.
Description
When a user performs a search operation on the table, this string is appended to the info feature's display text to given an indication of what the search means in the context of the number of rows found.
This option will default to the value given by language.infoFiltered
, 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.infoFiltered
option.
Example
Customise the search string:
new DataTable('#myTable', {
layout: {
bottomStart: {
info: {
search: ' - filtered from _MAX_ records'
}
}
}
});
Related
The following options are directly related and may also be useful in your application development.