Skip to content

PaginationController

Defined in: packages/core/src/class/PaginationController.ts:20

Client/server pagination math shared by @flextable/react and @flextable/vue — wrap an instance in useMemo/computed at the call site for reactivity.

T

new PaginationController<T>(table, serverSidePagination?): PaginationController<T>

Defined in: packages/core/src/class/PaginationController.ts:24

Table<T>

ServerSidePagination<T>

PaginationController<T>

get canNextPage(): boolean

Defined in: packages/core/src/class/PaginationController.ts:47

boolean


get canPreviousPage(): boolean

Defined in: packages/core/src/class/PaginationController.ts:43

boolean


get current(): PaginationSnapshot

Defined in: packages/core/src/class/PaginationController.ts:29

PaginationSnapshot

goToPage(page, onServerUpdate?): void

Defined in: packages/core/src/class/PaginationController.ts:59

number

(page) => void

void


updatePageSize(newSize, onServerUpdate?): void

Defined in: packages/core/src/class/PaginationController.ts:51

number

(size) => void

void