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.

Example
View Source
Edit In Stackblitz  
Change Theme:

Built-in Pager elements

The available built-in Pager elements are:

Available Context Fields

The template context exposes the following fields:

  • currentPageThe index of the displayed page.
  • pageSizeThe value of the current pageSize.
  • skipThe current skip value.
  • totalThe total number of records.
  • totalPagesThe total number of available pages.

In this article

Not finding the help you need?