TanStack

table_getSelectedCellIds

Function: table_getSelectedCellIds()

ts
function table_getSelectedCellIds<TFeatures, TData>(table): string[];

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

Returns the ids of all selected cells, in row-major order.

Cells covered by overlapping ranges are returned once, at their first occurrence.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

string[]

Example

ts
const ids = table_getSelectedCellIds(table)