Pager Template
To customize the pager appearance, use the PagerTemplateDirective
. The option enables you to take full control over the content of the pager by mixing custom components and the built-in pager elements. For more information on how to define the pager template, refer to the PagerTemplateDirective
API documentation.
When the Pager template is defined, the default responsive behavior is disabled.
The following example demonstrates how to use the Pager template.
Built-in Pager elements
The available built-in Pager elements are:
PagerNumericButtonsComponent
PagerInputComponent
PagerPageSizesComponent
PagerInfoComponent
PagerPrevButtonsComponent
PagerNextButtonsComponent
Available Context Fields
The template context exposes the following fields:
currentPage
—The index of the displayed page.pageSize
—The value of the currentpageSize
.skip
—The current skip value.total
—The total number of records.totalPages
—The total number of available pages.