searchPanes.i18n.emptyMessage
Add internationalisation to the empty message displayed as a pane option.
Please note - this property requires the SearchPanes extension for DataTables.
Description
Empty cells will be represented in the panes by the option searchPanes.i18n.emptyMessage
. This is useful as it's a more user-friendly way than just having a blank cell. The value is passed through the i18n()
function.
This value superseeds searchPanes.emptyMessage
(deprecated) and columns.searchPanes.emptyMessage
. If it is desired for those values to be used searchPanes.i18n.emptyMessage
should be undefined, as it is by default. When this is the case the two previous options will be used.
This option allows direct configuration on the language options for the SearchPanes instance. At this time using language.searchPanes.emptyMessage
has the same effect as setting this option. If both are provided, this will take preference, We've made this change for consistency in our APIs moving forward.
Type
string
- Description:
By setting the
searchPanes.i18n.emptyMessage
option to a string, any empty cells found in the table will be represented in the pane by that string.
Default
- Value:
undefined
The default value for the searchPanes.i18n.emptyMessage
parameter is undefined. This means that the value of searchPanes.emptyMessage
will be used. That value is \<i\>No Data\</i\>
.
Example
Altering Empty Message:
$(document).ready(function() {
var dt = $('#example').DataTable({
searchPanes: {
i18n: {
emptyMessage: "</i></b>EMPTY</b></i>"
}
}
dom: 'Plfrtip'
});
});
Related
The following options are directly related and may also be useful in your application development.