Skip to main content

Class: TableSelection

@lexical/table.TableSelection

Constructors

constructor

new TableSelection(editor, tableNodeKey)

Parameters

NameType
editorLexicalEditor
tableNodeKeystring

Defined in

lexical-table/src/LexicalTableSelection.ts:80

Properties

anchorCell

anchorCell: null | Cell

Defined in

lexical-table/src/LexicalTableSelection.ts:72


anchorCellNodeKey

anchorCellNodeKey: null | string

Defined in

lexical-table/src/LexicalTableSelection.ts:74


anchorX

anchorX: number

Defined in

lexical-table/src/LexicalTableSelection.ts:69


anchorY

anchorY: number

Defined in

lexical-table/src/LexicalTableSelection.ts:70


editor

editor: LexicalEditor

Defined in

lexical-table/src/LexicalTableSelection.ts:76


focusCell

focusCell: null | Cell

Defined in

lexical-table/src/LexicalTableSelection.ts:73


focusCellNodeKey

focusCellNodeKey: null | string

Defined in

lexical-table/src/LexicalTableSelection.ts:75


focusX

focusX: number

Defined in

lexical-table/src/LexicalTableSelection.ts:64


focusY

focusY: number

Defined in

lexical-table/src/LexicalTableSelection.ts:65


grid

grid: Grid

Defined in

lexical-table/src/LexicalTableSelection.ts:67


gridSelection

gridSelection: null | GridSelection

Defined in

lexical-table/src/LexicalTableSelection.ts:77


hasHijackedSelectionStyles

hasHijackedSelectionStyles: boolean

Defined in

lexical-table/src/LexicalTableSelection.ts:78


isHighlightingCells

isHighlightingCells: boolean

Defined in

lexical-table/src/LexicalTableSelection.ts:68


listenersToRemove

listenersToRemove: Set<() => void>

Defined in

lexical-table/src/LexicalTableSelection.ts:66


tableNodeKey

tableNodeKey: string

Defined in

lexical-table/src/LexicalTableSelection.ts:71

Methods

clearHighlight

clearHighlight(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:157


clearText

clearText(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:362


disableHighlightStyle

disableHighlightStyle(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:211


enableHighlightStyle

enableHighlightStyle(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:193


formatCells

formatCells(type): void

Parameters

NameType
typeTextFormatType

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:335


getGrid

getGrid(): Grid

Returns

Grid

Defined in

lexical-table/src/LexicalTableSelection.ts:103


removeListeners

removeListeners(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:107


setAnchorCellForSelection

setAnchorCellForSelection(cell): void

Parameters

NameType
cellCell

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:315


setFocusCellForSelection

setFocusCellForSelection(cell, ignoreStart?): void

Parameters

NameTypeDefault value
cellCellundefined
ignoreStartbooleanfalse

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:240


trackTableGrid

trackTableGrid(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:113


updateTableGridSelection

updateTableGridSelection(selection): void

Parameters

NameType
selectionnull | GridSelection

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:225