TanStack

table_extendCellSelection

Function: table_extendCellSelection()

ts
function table_extendCellSelection<TFeatures, TData>(table, direction): void;

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

Extends the active range one step in a direction, keeping its anchor fixed.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

direction

CellSelectionDirection

Returns

void

Example

ts
table_extendCellSelection(table, 'right')