Skip to main content

Pagination API overview

Methods

NameDescription
destructor()removes a pagination instance and releases occupied resources
getPage()returns the index of the active page
getPagesCount()gets the total number of pages in the pagination
getPageSize()returns the number of items displayed per page of the related widget
setPage()sets an active page in the related widget
setPageSize()sets the number of items displayed on a page of the related widget

Events

NameDescription
changefires on changing the active page

Properties

NameDescription
cssOptional. Adds style classes to the pagination
dataRequired. The data collection of a widget to set into the pagination
inputWidthOptional. Sets the width for the input of the pagination
pageOptional. The index of the initial page set in the pagination
pageSizeOptional. The number of items displayed per page of the related widget