Paging allows you to query the next and previous data chunks in a convenient way. You can also go to a specific page or just read page information about the current data chunk. Note that page numbers are generated by backend and may be used as offset rather than a continuous range of positive numbers (e.g. in case of users with restricted permissions).

Type Parameters

  • TData

Hierarchy

  • Paging

Constructors

Properties

currentPage: number

Holds the number of the current page, so in fact the data chunk you are looking at.

nextPage: number

Holds the number of the next page.

pageSize: number

Holds the number of the maximum data that you will get with the response.

prevPage: number

Holds the number of the previous page.

totalPages: number

Holds the number of total pages regarding to the given page size.

Methods

  • Method used by next(), prev() and goto() to call the service.list method. It is public so it can be overriden in special cases (like children objects in inventory).

    Parameters

    • filter: object = {}

    Returns Promise<IResultList<TData>>