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_getPageOptions

Function: table_getPageOptions()

ts
function table_getPageOptions<TFeatures, TData>(table): number[];
function table_getPageOptions<TFeatures, TData>(table): number[];

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

Builds the zero-based page indexes available for the current page count.

Unknown or empty page counts return an empty array; otherwise the result is [0, 1, ...pageCount - 1].

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

number[]

Example

ts
const pageIndexes = table_getPageOptions(table)
const pageIndexes = table_getPageOptions(table)