Skip to main content

Class: TableObserver

@lexical/table.TableObserver

Constructors

constructor

new TableObserver(editor, tableNodeKey)

Parameters

NameType
editorLexicalEditor
tableNodeKeystring

Defined in

lexical-table/src/LexicalTableObserver.ts:75

Properties

anchorCell

anchorCell: null | TableDOMCell

Defined in

lexical-table/src/LexicalTableObserver.ts:67


anchorCellNodeKey

anchorCellNodeKey: null | string

Defined in

lexical-table/src/LexicalTableObserver.ts:69


anchorX

anchorX: number

Defined in

lexical-table/src/LexicalTableObserver.ts:64


anchorY

anchorY: number

Defined in

lexical-table/src/LexicalTableObserver.ts:65


editor

editor: LexicalEditor

Defined in

lexical-table/src/LexicalTableObserver.ts:71


focusCell

focusCell: null | TableDOMCell

Defined in

lexical-table/src/LexicalTableObserver.ts:68


focusCellNodeKey

focusCellNodeKey: null | string

Defined in

lexical-table/src/LexicalTableObserver.ts:70


focusX

focusX: number

Defined in

lexical-table/src/LexicalTableObserver.ts:59


focusY

focusY: number

Defined in

lexical-table/src/LexicalTableObserver.ts:60


hasHijackedSelectionStyles

hasHijackedSelectionStyles: boolean

Defined in

lexical-table/src/LexicalTableObserver.ts:73


isHighlightingCells

isHighlightingCells: boolean

Defined in

lexical-table/src/LexicalTableObserver.ts:63


listenersToRemove

listenersToRemove: Set<() => void>

Defined in

lexical-table/src/LexicalTableObserver.ts:61


table

table: TableDOMTable

Defined in

lexical-table/src/LexicalTableObserver.ts:62


tableNodeKey

tableNodeKey: string

Defined in

lexical-table/src/LexicalTableObserver.ts:66


tableSelection

tableSelection: null | TableSelection

Defined in

lexical-table/src/LexicalTableObserver.ts:72

Methods

clearHighlight

clearHighlight(): void

Returns

void

Defined in

lexical-table/src/LexicalTableObserver.ts:152


clearText

clearText(): void

Returns

void

Defined in

lexical-table/src/LexicalTableObserver.ts:357


disableHighlightStyle

disableHighlightStyle(): void

Returns

void

Defined in

lexical-table/src/LexicalTableObserver.ts:206


enableHighlightStyle

enableHighlightStyle(): void

Returns

void

Defined in

lexical-table/src/LexicalTableObserver.ts:188


formatCells

formatCells(type): void

Parameters

NameType
typeTextFormatType

Returns

void

Defined in

lexical-table/src/LexicalTableObserver.ts:330


getTable

getTable(): TableDOMTable

Returns

TableDOMTable

Defined in

lexical-table/src/LexicalTableObserver.ts:98


removeListeners

removeListeners(): void

Returns

void

Defined in

lexical-table/src/LexicalTableObserver.ts:102


setAnchorCellForSelection

setAnchorCellForSelection(cell): void

Parameters

NameType
cellTableDOMCell

Returns

void

Defined in

lexical-table/src/LexicalTableObserver.ts:310


setFocusCellForSelection

setFocusCellForSelection(cell, ignoreStart?): void

Parameters

NameTypeDefault value
cellTableDOMCellundefined
ignoreStartbooleanfalse

Returns

void

Defined in

lexical-table/src/LexicalTableObserver.ts:235


trackTable

trackTable(): void

Returns

void

Defined in

lexical-table/src/LexicalTableObserver.ts:108


updateTableTableSelection

updateTableTableSelection(selection): void

Parameters

NameType
selectionnull | TableSelection

Returns

void

Defined in

lexical-table/src/LexicalTableObserver.ts:220