Class: TableObserver
@lexical/table.TableObserver
Constructors
constructor
• new TableObserver(editor
, tableNodeKey
): TableObserver
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
tableNodeKey | string |
Returns
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:111
Properties
abortController
• abortController: AbortController
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:107
anchorCell
• anchorCell: null
| TableDOMCell
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:98
anchorCellNodeKey
• anchorCellNodeKey: null
| string
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:100
anchorX
• anchorX: number
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:95
anchorY
• anchorY: number
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:96
editor
• editor: LexicalEditor
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:102
focusCell
• focusCell: null
| TableDOMCell
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:99
focusCellNodeKey
• focusCellNodeKey: null
| string
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:101
focusX
• focusX: number
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:90
focusY
• focusY: number
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:91
hasHijackedSelectionStyles
• hasHijackedSelectionStyles: boolean
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:104
isHighlightingCells
• isHighlightingCells: boolean
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:94
isSelecting
• isSelecting: boolean
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:105
listenerOptions
• listenerOptions: Object
Type declaration
Name | Type |
---|---|
signal | AbortSignal |
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:108
listenersToRemove
• listenersToRemove: Set
<() => void
>
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:92
nextFocus
• nextFocus: null
| { focusCell
: TableDOMCell
; override
: boolean
}
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:109
shouldCheckSelection
• shouldCheckSelection: boolean
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:106
table
• table: TableDOMTable
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:93
tableNodeKey
• tableNodeKey: string
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:97
tableSelection
• tableSelection: null
| TableSelection
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:103
Methods
$clearHighlight
▸ $clearHighlight(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:204
$clearText
▸ $clearText(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:450
$disableHighlightStyle
▸ $disableHighlightStyle(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:241
$enableHighlightStyle
▸ $enableHighlightStyle(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:229
$formatCells
▸ $formatCells(type
): void
Parameters
Name | Type |
---|---|
type | TextFormatType |
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:422
$getAnchorTableCell
▸ $getAnchorTableCell(): null
| TableCellNode
Returns
null
| TableCellNode
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:380
$getAnchorTableCellOrThrow
▸ $getAnchorTableCellOrThrow(): TableCellNode
Returns
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:385
$getFocusTableCell
▸ $getFocusTableCell(): null
| TableCellNode
Returns
null
| TableCellNode
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:394
$getFocusTableCellOrThrow
▸ $getFocusTableCellOrThrow(): TableCellNode
Returns
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:398
$lookup
▸ $lookup(): Object
Returns
Object
Name | Type |
---|---|
tableElement | HTMLTableElementWithWithTableSelectionState |
tableNode | TableNode |
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:151
$setAnchorCellForSelection
▸ $setAnchorCellForSelection(cell
): void
Parameters
Name | Type |
---|---|
cell | TableDOMCell |
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:404
$setFocusCellForSelection
▸ $setFocusCellForSelection(cell
, ignoreStart?
): boolean
Parameters
Name | Type | Default value |
---|---|---|
cell | TableDOMCell | undefined |
ignoreStart | boolean | false |
Returns
boolean
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:332
$updateTableTableSelection
▸ $updateTableTableSelection(selection
): void
Parameters
Name | Type |
---|---|
selection | null | TableSelection |
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:250
getTable
▸ getTable(): TableDOMTable
Returns
TableDOMTable
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:139
removeListeners
▸ removeListeners(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:143
trackTable
▸ trackTable(): void
Returns
void