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:100

Properties

anchorCell

anchorCell: null | Cell

Defined in

lexical-table/src/LexicalTableSelection.ts:92


anchorCellNodeKey

anchorCellNodeKey: null | string

Defined in

lexical-table/src/LexicalTableSelection.ts:94


anchorX

anchorX: number

Defined in

lexical-table/src/LexicalTableSelection.ts:89


anchorY

anchorY: number

Defined in

lexical-table/src/LexicalTableSelection.ts:90


editor

editor: LexicalEditor

Defined in

lexical-table/src/LexicalTableSelection.ts:96


focusCell

focusCell: null | Cell

Defined in

lexical-table/src/LexicalTableSelection.ts:93


focusCellNodeKey

focusCellNodeKey: null | string

Defined in

lexical-table/src/LexicalTableSelection.ts:95


focusX

focusX: number

Defined in

lexical-table/src/LexicalTableSelection.ts:84


focusY

focusY: number

Defined in

lexical-table/src/LexicalTableSelection.ts:85


grid

grid: Grid

Defined in

lexical-table/src/LexicalTableSelection.ts:87


gridSelection

gridSelection: null | GridSelection

Defined in

lexical-table/src/LexicalTableSelection.ts:97


hasHijackedSelectionStyles

hasHijackedSelectionStyles: boolean

Defined in

lexical-table/src/LexicalTableSelection.ts:98


isHighlightingCells

isHighlightingCells: boolean

Defined in

lexical-table/src/LexicalTableSelection.ts:88


listenersToRemove

listenersToRemove: Set<() => void>

Defined in

lexical-table/src/LexicalTableSelection.ts:86


tableNodeKey

tableNodeKey: string

Defined in

lexical-table/src/LexicalTableSelection.ts:91

Methods

clearHighlight

clearHighlight(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:177


clearText

clearText(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:367


disableHighlightStyle

disableHighlightStyle(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:225


enableHighlightStyle

enableHighlightStyle(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:212


formatCells

formatCells(type): void

Parameters

NameType
typeTextFormatType

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:340


getGrid

getGrid(): Grid

Returns

Grid

Defined in

lexical-table/src/LexicalTableSelection.ts:123


removeListeners

removeListeners(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:127


setAnchorCellForSelection

setAnchorCellForSelection(cell): void

Parameters

NameType
cellCell

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:323


setFocusCellForSelection

setFocusCellForSelection(cell, ignoreStart?): void

Parameters

NameTypeDefault value
cellCellundefined
ignoreStartbooleanfalse

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:249


trackTableGrid

trackTableGrid(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:133


updateTableGridSelection

updateTableGridSelection(selection): void

Parameters

NameType
selectionnull | GridSelection

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:238