TanStack

table_setFocusedCell

Function: table_setFocusedCell()

ts
function table_setFocusedCell<TFeatures, TData>(
   table, 
   rowId, 
   columnId): void;

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

Collapses the selection to a single cell at the given coordinates.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

rowId

string

columnId

string

Returns

void

Example

ts
table_setFocusedCell(table, '3', 'firstName')