Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Static Functions API Reference
Legacy API Reference
Static Functions API Reference

table_setPagination

Function: table_setPagination()

ts
function table_setPagination<TFeatures, TData>(table, updater): void | undefined;
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>

Returns

void | undefined

Example

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