Skip to main content

table_setFocusedCell

还没翻译译自英文(tanstack.com)本页 18 段都还没译

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

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

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

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