Skip to content

Home > @liquidrazor/list-display > toggleRowSelection

toggleRowSelection() function

Signature:

typescript
toggleRowSelection: <TRow = AnyRow, TRowId extends RowId = RowId>(row: TRow, selection: SelectionState<TRowId>, ctx: SelectionContext<TRow, TRowId>) => SelectionState<TRowId>

Parameters

Parameter

Type

Description

row

TRow

selection

SelectionState<TRowId>

ctx

SelectionContext<TRow, TRowId>

Returns:

SelectionState<TRowId>