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

selectRowsFn

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

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

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>

table

Table_Internal<TFeatures, TData>

Returns

RowModel<TFeatures, TData>

Example

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