TanStack

getDefaultCellSelectionState

Function: getDefaultCellSelectionState()

ts
function getDefaultCellSelectionState(): CellSelectionState;

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

Creates the default cell selection state.

The feature default is an empty selection. Reset APIs use this value when defaultState is true.

Returns

CellSelectionState

Example

ts
const selection = getDefaultCellSelectionState()