language.searchPlaceholder
Search input element placeholder attribute.
Description
HTML has a placeholder attribute for input type="text"
elements to provide informational text for an input control when it has no value.
This parameter can be used to set a value for the placeholder attribute in a DataTable's search input.
Note that it is possible to override this option on a per-control basis with the search
feature for layout
.
Type
This option can be given in the following type(s):
Default
- Value:
The default value for this parameter is an empty string, meaning that it will not be visible to the end user.
Examples
Set a placeholder:
new DataTable('#myTable', {
language: {
searchPlaceholder: 'Search records'
}
});
Search input with no label - just the placeholder:
new DataTable('#myTable', {
language: {
search: '_INPUT_',
searchPlaceholder: 'Search...'
}
});
Related
The following options are directly related and may also be useful in your application development.