language.searchPanes
Container for options for language.
Please note - this property requires the SearchPanes extension for DataTables.
Description
As standard, no custom options will be applied to the pane specific language options if language.searchPanes
is undefined. Otherwise the related options will be applied if they are defined within this object. The language options from the parent table propagate down to the SearchPanes DataTable, so any language options set there will also affect the panes. The table specific language options for SearchPanes can be set using searchPanes.dtOpts
and setting the language
option within it.
This is a set of default values that can be set, they are overridden by searchPanes.i18n
for case specific options.
This is useful as it means that the language options can be set for panes leading to increased internationalisation.
Type
string
- Description:
This option is capable of holding all of the sub-options for languages for the panes.
Default
- Value:
undefined
The default value for the language.searchPanes
object is undefined
. Meaning that as standard there are no extra options to add to the panes for language.
Examples
Alter title messages: :
$(document).ready(function() {
$('#example').DataTable({
dom: 'Plfrtip',
language: {
searchPanes: {
title: {
_: 'Filters Selected - %d',
0: 'No Filters Selected',
1: 'One Filter Selected'
}
}
}
});
});
Change messages for viewTotal::
$(document).ready(function() {
$('#example').DataTable({
searchPanes: {
viewTotal: true
},
dom: 'Plfrtip',
language: {
searchPanes: {
count: '{total} found',
countFiltered: '{shown} ({total})'
}
}
});
});
Related
The following options are directly related and may also be useful in your application development.