0
Fork 0
mirror of https://github.com/TanStack/table.git synced 2026-11-18 18:55:54 +00:00
table/docs/reference/static-functions/functions/table_getPreExpandedRowModel.md
2026-06-26 20:33:44 -05:00

1,022 B

id title
table_getPreExpandedRowModel table_getPreExpandedRowModel

Function: table_getPreExpandedRowModel()

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

const rowsBeforeExpansion = table_getPreExpandedRowModel(table)