Skip to content

Type Editor


Type Editor / @type-editor/tables / cellselection/CellSelection

cellselection/CellSelection

Classes

ClassDescription

CellSelection

A Selection subclass that represents a cell selection spanning part of a table. With the plugin enabled, these will be created when the user selects across cells, and will be drawn by giving selected cells a selectedCell CSS class.

See

Selection

Example

typescript
// Create a single cell selection
const selection = new CellSelection($cellPos);

// Create a multi-cell selection
const selection = new CellSelection($anchorCell, $headCell);

// Create a full column selection
const colSel = CellSelection.colSelection($anchorCell, $headCell);