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_resetPageSize

Function: table_resetPageSize()

ts
function table_resetPageSize<TFeatures, TData>(table, defaultState?): void;
function table_resetPageSize<TFeatures, TData>(table, defaultState?): void;

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

Resets only pagination.pageSize.

With no argument, the reset uses table.initialState.pagination?.pageSize or 10. Passing true always resets the page size to 10.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

defaultState?

boolean

Returns

void

Example

ts
table_resetPageSize(table)
table_resetPageSize(table, true)
table_resetPageSize(table)
table_resetPageSize(table, true)