Cumulocity Web SDK - v1023.0.0
    Preparing search index...

    Class Paging<TData>

    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
    Index

    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.

    totalElements: number

    Holds the number of total elements for the given request.

    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>>