TanStack

table_setCellSelection

Function: table_setCellSelection()

ts
function table_setCellSelection<TFeatures, TData>(table, updater): void;

Defined in: features/cell-selection/cellSelectionFeature.utils.ts:44

Routes a cell selection updater through the table's selection change handler.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

updater

Updater<CellSelectionState>

Returns

void

Example

ts
table_setCellSelection(table, (old) => old.slice(0, -1))