A Paginator is a control that lets users browse through the pages of a given page set. For example, it is possible to use a Paginator in order to let the user navigate back and forth through the pages of a list or a table.
There are only two parameters that need to be set to make the Paginator work: currentPage
and numberOfPages
. Then for each modification of the Paginator done by the user, a page
event is sent containing the necessary information for the controlled page set to navigate to the desired page.
Available properties are as following: type of event
, index of current page
, index of target page
.
In this example, a Paginator is set up for 110 pages. The currently shown page is 13.
The Paginator example has a descriptive JavaScript alert attached to the page
event.