Paging component

The Paging component implements pagination in grids implemented using Listing. It also creates an instance of the child Sizes component which allows to define the number of records displayed in the associated table.

Configuration options

Option Description Type Default Value
current The number of current page. String 1
sizesConfig.maxSize The maximum number of elements on a page configuration that is passed to the Sizes component. Object 999
sizesConfig.minSize The minimum number of elements on a page configuration that is passed to the Sizes component. Object 1
template The path to the component’s .html template. String ui/grid/paging/paging
totalTmpl Path to the .html template for rendering the total amount of found records. String ui/grid/paging-total

Source files

Extends UiElement:

Examples

Integrate the Paging component with the Listing component

This example integrates the Paging component with the Listing component:

1
2
3
4
5
6
7
<listing>
    ...
    <listingToolbar>
        ...
        <paging name="listing_paging"/>
    </listingToolbar>
</listing>

Result

Paging Component example