The Pagination sub-controller is responsible for navigating between pages of results in a commerce interface.

interface Pagination {
    state: PaginationState;
    fetchMoreProducts(): void;
    nextPage(): void;
    previousPage(): void;
    selectPage(page: number): void;
    setPageSize(pageSize: number): void;
    subscribe(listener: () => void): Unsubscribe;
}

Hierarchy (View Summary)

Methods

Properties

A scoped and simplified part of the headless state that is relevant to the Pagination sub-controller.