Class: Paginator

Paginator

Pagination helper class.

Properties:
Name Type Description
items Array Array of elements on current page.
hasNextPage Boolean Indicates the existence of next page.
hasPrevPage Boolean Indicates the existence of previous page.

Methods


nextPage()

Request next page. Does not modify existing object.
Returns:
Type
Promise.<Paginator>

prevPage()

Request previous page. Does not modify existing object.
Returns:
Type
Promise.<Paginator>