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

Function: table_getExpandedRowModel()

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

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

Resolves the row model after expanded rows have been flattened into view.

When manualExpanding is enabled, or no expanded row-model factory was registered, this returns the pre-expanded row model unchanged.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

RowModel<TFeatures, TData>

Example

ts
const expandedRows = table_getExpandedRowModel(table)
const expandedRows = table_getExpandedRowModel(table)