TanStack

cell_getCanSelect

Function: cell_getCanSelect()

ts
function cell_getCanSelect<TFeatures, TData, TValue>(cell): boolean;

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

Checks whether this cell can currently be selected.

A column def opting out with enableCellSelection: false wins over the table option, matching how the other per-column enable flags resolve.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

TValue

TValue extends unknown = unknown

Parameters

cell

Cell<TFeatures, TData, TValue>

Returns

boolean

Example

ts
const canSelect = cell_getCanSelect(cell)