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

selectRowsFn

Function: selectRowsFn()

ts
function selectRowsFn<TFeatures, TData>(rowModel): RowModel<TFeatures, TData>;
function selectRowsFn<TFeatures, TData>(rowModel): RowModel<TFeatures, TData>;

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

Builds a row model containing rows selected by the current row selection state.

The result is derived from the supplied row model, so selected ids absent from that model are not materialized as rows.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

rowModel

RowModel<TFeatures, TData>

Returns

RowModel<TFeatures, TData>

Example

ts
const selectedRows = selectRowsFn(rowModel)
const selectedRows = selectRowsFn(rowModel)