Skip to main content

Class: TableObserver

@lexical/table.TableObserver

Constructors

constructor

new TableObserver(editor, tableNodeKey): TableObserver

Parameters

NameType
editorLexicalEditor
tableNodeKeystring

Returns

TableObserver

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:79

Properties

abortController

abortController: AbortController

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:76


anchorCell

anchorCell: null | TableDOMCell

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:68


anchorCellNodeKey

anchorCellNodeKey: null | string

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:70


anchorX

anchorX: number

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:65


anchorY

anchorY: number

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:66


editor

editor: LexicalEditor

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:72


focusCell

focusCell: null | TableDOMCell

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:69


focusCellNodeKey

focusCellNodeKey: null | string

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:71


focusX

focusX: number

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:60


focusY

focusY: number

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:61


hasHijackedSelectionStyles

hasHijackedSelectionStyles: boolean

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:74


isHighlightingCells

isHighlightingCells: boolean

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:64


isSelecting

isSelecting: boolean

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:75


listenerOptions

listenerOptions: Object

Type declaration

NameType
signalAbortSignal

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:77


listenersToRemove

listenersToRemove: Set<() => void>

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:62


table

table: TableDOMTable

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:63


tableNodeKey

tableNodeKey: string

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:67


tableSelection

tableSelection: null | TableSelection

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:73

Methods

clearHighlight

clearHighlight(): void

Returns

void

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:167


clearText

clearText(): void

Returns

void

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:373


disableHighlightStyle

disableHighlightStyle(): void

Returns

void

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:221


enableHighlightStyle

enableHighlightStyle(): void

Returns

void

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:203


formatCells

formatCells(type): void

Parameters

NameType
typeTextFormatType

Returns

void

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:346


getTable

getTable(): TableDOMTable

Returns

TableDOMTable

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:105


removeListeners

removeListeners(): void

Returns

void

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:109


setAnchorCellForSelection

setAnchorCellForSelection(cell): void

Parameters

NameType
cellTableDOMCell

Returns

void

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:326


setFocusCellForSelection

setFocusCellForSelection(cell, ignoreStart?): void

Parameters

NameTypeDefault value
cellTableDOMCellundefined
ignoreStartbooleanfalse

Returns

void

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:250


trackTable

trackTable(): void

Returns

void

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:117


updateTableTableSelection

updateTableTableSelection(selection): void

Parameters

NameType
selectionnull | TableSelection

Returns

void

Defined in

packages/lexical-table/src/LexicalTableObserver.ts:235