Skip to main content

isRowSelected

还没翻译译自英文(tanstack.com)本页 16 段都还没译

function isRowSelected<TFeatures, TData>(row, rowSelection): boolean;

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

Returns whether a row id is selected in the current row selection state.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

row

Row<TFeatures, TData>

rowSelection

RowSelectionState

Returns

boolean

Example

const selected = isRowSelected(row)