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
cssadds style classes to the pagination
datathe 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