selectRowsFn

Function: selectRowsFn()

ts
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)