table_setPagination

Function: table_setPagination()

ts
function table_setPagination<TFeatures, TData>(table, updater): void | undefined;

Defined in: features/row-pagination/rowPaginationFeature.utils.ts:65

Routes a pagination updater through the table's pagination change handler.

The updater may be a next state object or a function of the previous PaginationState; controlled state and external atoms observe the same updater path as the instance API.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal\<`TFeatures`, `TData`\>

updater

Updater\<[`PaginationState`](../../index/interfaces/PaginationState.md)\>

Returns

void | undefined

Example

ts
table_setPagination(table, (old) => old)