{hero}

language.searchPanes.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 languages.searchPanes.emptyPanes is set to null then the div will not be shown.

Type

string

Description:

By setting the languages.searchPanes.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 languages.searchPanes.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',
        language: {
            searchPanes: {
                 emptyPanes: 'There are no panes to display. :/'
            }
        }
    });

Hide the div that is meant to contain the SearchPanes:

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