language.searchPanes.emptyPanes
Add internationalisation to the message shown when no panes are displayed.
Please note - this property requires the SearchPanes extension for DataTables.
Description
SearchPanes will display the message defined here in the div
that is meant to hold the panes if there are none to display. If the value of this option is set to null then the div will not be shown.
It is a global setting that will impact all instances of SearchPanes on a DataTable (it should be noted that it is uncommon to have more than one instance!). The per-instance parameter is searchPanes.i18n.emptyPanes
, which also defines the default.
This option is useful as the language
object can be loaded by Ajax, or set locally and define all language strings used by DataTables and its extensions.
Type
string
- Description:
By setting the
searchPanes.i18n.emptyPanes
option to a message, if there are no panes to be displayed then this message will be displayed in their place.
Examples
Alter Empty Pane Message:
new DataTable('#myTable', {
language: {
searchPanes: {
emptyPanes: 'There are no panes to display. :/'
}
},
layout: {
top1: 'searchPanes'
}
});
Hide the div that is meant to contain the SearchPanes:
new DataTable('#myTable', {
language: {
searchPanes: {
emptyPanes: null
}
},
layout: {
top1: 'searchPanes'
}
});