Label Control

The label control is used to print information about the current page state. For example, it may be the selected page number or the total page number.


Label Types

No results label

This label appears when the total number of items becomes zero.

    data-text="No results found.">

Custom label

It is possible to create a custom label using the following callback function:

        // render custom label HTML
        renderLabelControl: function(state, $control){
            return 'any custom html';

If the label is empty, it has a dg-label-empty CSS class. This way, it's possible to add special styles:

    display: none;

Last updated