TanStack

table_selectCellRange

Function: table_selectCellRange()

ts
function table_selectCellRange<TFeatures, TData>(
   table, 
   range, 
   opts?): void;

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

Selects a rectangle, replacing the current selection unless additive.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

range

CellSelectionRange

opts?

SelectCellRangeOptions

Returns

void

Example

ts
table_selectCellRange(table, range, { additive: true })