A scoped and simplified part of the headless state that is relevant to the Pager controller.

interface PagerState {
    currentPage: number;
    currentPages: number[];
    hasNextPage: boolean;
    hasPreviousPage: boolean;
    maxPage: number;
}

Properties

currentPage: number

The active page number.

currentPages: number[]

The page range to display.

hasNextPage: boolean

Returns true when a next page is available, and false otherwise.

hasPreviousPage: boolean

Returns true when a previous page is available, and false otherwise.

maxPage: number

The maximum available page.