Class: Paginator

Paginator

Pagination helper class.

Properties:
Name Type Description
items Array Array of elements of type T 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.<T>>

prevPage()

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