Defined in: features/cell-selection/cellSelectionFeature.types.ts:207
TFeatures extends TableFeatures
TData extends RowData
_isSelectingCells: boolean;Defined in: features/cell-selection/cellSelectionFeature.types.ts:220
Internal
Whether a drag selection is currently open.
Non-reactive instance data rather than state: only the mouse handlers read it, nothing renders from it, and keeping it out of the slice means a selection persisted mid-drag cannot rehydrate into a stuck drag.
autoResetCellSelection: () => void;Defined in: features/cell-selection/cellSelectionFeature.types.ts:227
Schedules a cell selection reset after data changes.
Honors autoResetAll and autoResetCellSelection. Called by the core row model; you rarely need to invoke it yourself.
void
extendCellSelection: (direction) => void;Defined in: features/cell-selection/cellSelectionFeature.types.ts:231
Extends the active range one step in a direction, keeping its anchor fixed.
void
getCellSelectionBounds: () => CellSelectionBounds[];Defined in: features/cell-selection/cellSelectionFeature.types.ts:239
Returns the final positive selection as disjoint, inclusive display-order index rectangles after all include and exclude operations are applied.
This is the memoized cache every per-cell read goes through. Ranges whose corners no longer resolve are omitted.
getCellSelectionColumnIds: () => string[];Defined in: features/cell-selection/cellSelectionFeature.types.ts:252
Returns the ids of all columns intersected by the selection.
string[]
getCellSelectionColumnIndexes: () => Record<string, number>;Defined in: features/cell-selection/cellSelectionFeature.types.ts:261
Internal
Returns a column id to display-index map for the current column order.
Registered so the lookup stays memoized even when columnOrderingFeature is absent, since its getColumnIndexes static rebuilds on every call.
Record<string, number>
getCellSelectionMergeBounds: () => CellSelectionBounds[];Defined in: features/cell-selection/cellSelectionFeature.types.ts:248
Returns the merged-cell rectangles of the rendered rows in selection's display-order index space, or an empty array when cellSpanningFeature is not registered.
Selection rectangles expand to fully enclose these, so a merged cell is always entirely selected or entirely unselected.
getCellSelectionRowIds: () => string[];Defined in: features/cell-selection/cellSelectionFeature.types.ts:265
Returns the ids of all rows intersected by the selection.
string[]
getFocusedCell: () =>
| Cell<TFeatures, TData, any>
| undefined;Defined in: features/cell-selection/cellSelectionFeature.types.ts:270
Returns the active cell, i.e. the anchor of the most recent operation. An exclusion's active cell is focused even though it is not selected.
| Cell<TFeatures, TData, any> | undefined
getSelectedCellCount: () => number;Defined in: features/cell-selection/cellSelectionFeature.types.ts:277
Returns the number of selected cells.
Computed with rectangle arithmetic unless a per-cell enableCellSelection predicate requires enumeration.
number
getSelectedCellIds: () => string[];Defined in: features/cell-selection/cellSelectionFeature.types.ts:284
Returns the unique ids of all selected cells, in row-major order.
This expands the selection, so it costs one pass over the selected area. It is memoized and never runs unless called.
string[]
getSelectedCellRangesData: () => unknown[][][];Defined in: features/cell-selection/cellSelectionFeature.types.ts:292
Returns each final positive selection region's values as a row-major grid.
Indexed as [regionIndex][rowIndex][columnIndex]. Serializing this to clipboard text is left to userland, since the delimiter, the null representation, and any quoting rules are application decisions.
unknown[][][]
moveCellSelection: (direction) => void;Defined in: features/cell-selection/cellSelectionFeature.types.ts:297
Moves the selection one step in a direction, collapsing it to a single cell. Columns that cannot be selected are skipped over.
void
resetCellSelection: (defaultState?) => void;Defined in: features/cell-selection/cellSelectionFeature.types.ts:303
Resets cellSelection to initialState.cellSelection.
Pass true to ignore initial state and reset to an empty selection.
boolean
void
selectAllCells: () => void;Defined in: features/cell-selection/cellSelectionFeature.types.ts:307
Selects every selectable cell in the table as one range.
void
selectCellRange: (range, opts?) => void;Defined in: features/cell-selection/cellSelectionFeature.types.ts:311
Selects a rectangle using the requested replace/include/exclude mode.
void
setCellSelection: (updater) => void;Defined in: features/cell-selection/cellSelectionFeature.types.ts:318
Updates cell selection state with a next value or updater function.
void
setFocusedCell: (rowId, columnId) => void;Defined in: features/cell-selection/cellSelectionFeature.types.ts:322
Collapses the selection to a single cell at the given coordinates.
string
string
void