@twilio/flex-sdk
    Preparing search index...

    Interface Paginator<T>

    interface Paginator<T> {
        hasNextPage: boolean;
        hasPrevPage: boolean;
        items: T[];
        nextPage(): Promise<Paginator<T>>;
        prevPage(): Promise<Paginator<T>>;
    }

    Type Parameters

    • T

      The item type.

    Index

    Properties

    hasNextPage: boolean

    Indicates the existence of the next page.

    hasPrevPage: boolean

    Indicates the existence of the previous page.

    items: T[]

    Array of elements of type T on the current page.

    Methods

    • Request next page. Does not modify the existing object.

      Returns Promise<Paginator<T>>

    • Request previous page. Does not modify the existing object.

      Returns Promise<Paginator<T>>