{hero}

language.searchPanes.title

Since: SearchPanes SearchPanes 1.0.0

Add internationalisation to the title showing how many panes are selected.
Please note - this property requires the SearchPanes extension for DataTables.

Description

As standard, SearchPanes will set the title to display the number of filters in the style of the following 'Filters Active - %d'. This property allows that message to be configured.

Types

string

Description:

As standard languages.searchPanes.title is simply a string that contains a replacement for the number of selections that have been made.

object

Description:

It is possible to set the value of language.searchPanes.title to an object that would allow for the actual text to also change as the number of selections increases.

Default

  • Value: Filters Active - %d

The default value for the languages.searchPanes.title parameter is Filters Active - %d.

Examples

Alter title messages with an object:

$(document).ready(function() {
    $('#example').DataTable({
        dom: 'Plfrtip',
        language: {
            searchPanes: {
                title: {
                    _: 'Filters Selected - %d',
                    0: 'No Filters Selected',
                    1: 'One Filter Selected'
                }
            }
        }
    });
});

Alter title message to be a static string:

$(document).ready(function() {
    $('#example').DataTable({
        dom: 'Plfrtip',
        language: {
            searchPanes: {
                title: 'Select filters below'
            }
        }
    });
});