TanStack

table_selectCellRange

Function: table_selectCellRange()

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

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

Selects a rectangle using replace, include, or exclude semantics.

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, { mode: 'exclude' })