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:80
Properties
abortController
• abortController: AbortController
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:77
anchorCell
• anchorCell: null
| TableDOMCell
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:69
anchorCellNodeKey
• anchorCellNodeKey: null
| string
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:71
anchorX
• anchorX: number
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:66
anchorY
• anchorY: number
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:67
editor
• editor: LexicalEditor
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:73
focusCell
• focusCell: null
| TableDOMCell
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:70
focusCellNodeKey
• focusCellNodeKey: null
| string
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:72
focusX
• focusX: number
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:61
focusY
• focusY: number
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:62
hasHijackedSelectionStyles
• hasHijackedSelectionStyles: boolean
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:75
isHighlightingCells
• isHighlightingCells: boolean
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:65
isSelecting
• isSelecting: boolean
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:76
listenerOptions
• listenerOptions: Object
Type declaration
Name | Type |
---|---|
signal | AbortSignal |
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:78
listenersToRemove
• listenersToRemove: Set
<() => void
>
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:63
table
• table: TableDOMTable
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:64
tableNodeKey
• tableNodeKey: string
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:68
tableSelection
• tableSelection: null
| TableSelection
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:74
Methods
clearHighlight
▸ clearHighlight(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:168
clearText
▸ clearText(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:378
disableHighlightStyle
▸ disableHighlightStyle(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:222
enableHighlightStyle
▸ enableHighlightStyle(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:204
formatCells
▸ formatCells(type
): void
Parameters
Name | Type |
---|---|
type | TextFormatType |
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:347
getTable
▸ getTable(): TableDOMTable
Returns
TableDOMTable
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:106
removeListeners
▸ removeListeners(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:110
setAnchorCellForSelection
▸ setAnchorCellForSelection(cell
): void
Parameters
Name | Type |
---|---|
cell | TableDOMCell |
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:327
setFocusCellForSelection
▸ setFocusCellForSelection(cell
, ignoreStart?
): void
Parameters
Name | Type | Default value |
---|---|---|
cell | TableDOMCell | undefined |
ignoreStart | boolean | false |
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:251
trackTable
▸ trackTable(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:118
updateTableTableSelection
▸ updateTableTableSelection(selection
): void
Parameters
Name | Type |
---|---|
selection | null | TableSelection |
Returns
void