Options
All
  • Public
  • Public/Protected
  • All
Menu

Pagination helper class.

Type parameters

  • Item

Hierarchy

  • Paginator

Index

Properties

Accessors

Methods

Properties

Readonly items

items: Item[]

Array of elements on current page.

Accessors

hasNextPage

  • get hasNextPage(): boolean
  • Indicates the existence of the next page.

    Returns boolean

hasPrevPage

  • get hasPrevPage(): boolean
  • Indicates the existence of the previous page.

    Returns boolean

Methods

nextPage

  • Request next page. Does not modify existing object.

    Returns Promise<Paginator<Item>>

prevPage

  • Request previous page. Does not modify existing object.

    Returns Promise<Paginator<Item>>