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

Properties

anchorCell

anchorCell: null | Cell

Defined in

lexical-table/src/LexicalTableSelection.ts:90


anchorCellNodeKey

anchorCellNodeKey: null | string

Defined in

lexical-table/src/LexicalTableSelection.ts:92


anchorX

anchorX: number

Defined in

lexical-table/src/LexicalTableSelection.ts:87


anchorY

anchorY: number

Defined in

lexical-table/src/LexicalTableSelection.ts:88


editor

editor: LexicalEditor

Defined in

lexical-table/src/LexicalTableSelection.ts:94


focusCell

focusCell: null | Cell

Defined in

lexical-table/src/LexicalTableSelection.ts:91


focusCellNodeKey

focusCellNodeKey: null | string

Defined in

lexical-table/src/LexicalTableSelection.ts:93


focusX

focusX: number

Defined in

lexical-table/src/LexicalTableSelection.ts:82


focusY

focusY: number

Defined in

lexical-table/src/LexicalTableSelection.ts:83


grid

grid: Grid

Defined in

lexical-table/src/LexicalTableSelection.ts:85


gridSelection

gridSelection: null | GridSelection

Defined in

lexical-table/src/LexicalTableSelection.ts:95


hasHijackedSelectionStyles

hasHijackedSelectionStyles: boolean

Defined in

lexical-table/src/LexicalTableSelection.ts:96


isHighlightingCells

isHighlightingCells: boolean

Defined in

lexical-table/src/LexicalTableSelection.ts:86


listenersToRemove

listenersToRemove: Set<() => void>

Defined in

lexical-table/src/LexicalTableSelection.ts:84


tableNodeKey

tableNodeKey: string

Defined in

lexical-table/src/LexicalTableSelection.ts:89

Methods

clearHighlight

clearHighlight(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:175


clearText

clearText(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:365


disableHighlightStyle

disableHighlightStyle(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:223


enableHighlightStyle

enableHighlightStyle(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:210


formatCells

formatCells(type): void

Parameters

NameType
typeTextFormatType

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:338


getGrid

getGrid(): Grid

Returns

Grid

Defined in

lexical-table/src/LexicalTableSelection.ts:121


removeListeners

removeListeners(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:125


setAnchorCellForSelection

setAnchorCellForSelection(cell): void

Parameters

NameType
cellCell

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:321


setFocusCellForSelection

setFocusCellForSelection(cell, ignoreStart?): void

Parameters

NameTypeDefault value
cellCellundefined
ignoreStartbooleanfalse

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:247


trackTableGrid

trackTableGrid(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:131


updateTableGridSelection

updateTableGridSelection(selection): void

Parameters

NameType
selectionnull | GridSelection

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:236