Docs
CodeRabbit
Cloudflare
Railway
SerpAPI
AG Grid
WorkOS
Clerk
Netlify
OpenRouter
Prisma
Electric
Sentry
Unkey
CodeRabbit
Cloudflare
Railway
SerpAPI
AG Grid
WorkOS
Clerk
Netlify
OpenRouter
Prisma
Electric
Sentry
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_getPreExpandedRowModel

Function: table_getPreExpandedRowModel()

ts
function table_getPreExpandedRowModel<TFeatures, TData>(table): RowModel<TFeatures, TData>;
function table_getPreExpandedRowModel<TFeatures, TData>(table): RowModel<TFeatures, TData>;

Defined in: core/row-models/coreRowModelsFeature.utils.ts:176

Reads the row model immediately before row expansion.

Expansion runs after sorting, so this aliases table.getSortedRowModel().

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

RowModel<TFeatures, TData>

Example

ts
const rowsBeforeExpansion = table_getPreExpandedRowModel(table)
const rowsBeforeExpansion = table_getPreExpandedRowModel(table)