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.
Data Attribute | Value | Description | Required |
data-grid-control | label | This attribute defines the control type. | Required |
data-type |
| Label type. | Optional |
Label Types
Type | Example |
pagination-pages | Page 1 of 3 |
pagination-items | 1 - 12 of 36 |
no-results | No results found. |
No results label
This label appears when the total number of items becomes zero.
Custom label
It is possible to create a custom label using the following callback function:
If the label is empty, it has a dg-label-empty
CSS class. This way, it's possible to add special styles:
Last updated