{hero}

searchPanes.i18n.emptyPanes

Since: SearchPanes SearchPanes 1.0.0

Add internationalisation to the message shown when no panes are displayed.
Please note - this property requires the SearchPanes extension for DataTables.

Description

As standard, SearchPanes will display a message in the div that is meant to hold the panes if there are none to display. If a custom message has been declared then this will be shown in the place of the default message. If the value of searchPanes.i18n.emptyPanes is set to null then the div will not be shown.

This option allows direct configuration on the language options for the SearchPanes instance. At this time using language.searchPanes.emptyPanes 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.emptyPanes option to a message, if there are no panes to be displayed then this message will be displayed in their place.

Default

  • Value: No searchPanes

The default value for the searchPanes.i18n.emptyPanes parameter is "No SearchPanes". This is so that it is easier for devs to realise when there are no SearchPanes to be shown rather than mistaking the lack of a div for an error.

Examples

Alter Empty Pane Message:

$('#example').DataTable({
        dom: 'Plfrtip',
        searchPanes: {
            i18n: {
                emptyPanes: 'There are no panes to display. :/'
            }
        }
    });

Hide the div that is meant to contain the SearchPanes:

$('#example').DataTable({
        dom: 'Plfrtip',
        searchPanes: {
            i18n: {
                emptyPanes: null
            }
        }
    });