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_getPreSelectedRowModel

Function: table_getPreSelectedRowModel()

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

Defined in: features/row-selection/rowSelectionFeature.utils.ts:155

Reads the row model before row selection is projected into selected rows.

Selection does not alter the base row pipeline, so this returns the core row model.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

RowModel<TFeatures, TData>

Example

ts
const rowsBeforeSelection = table_getPreSelectedRowModel(table)
const rowsBeforeSelection = table_getPreSelectedRowModel(table)