Class: TableObserver
@lexical/table.TableObserver
Constructors
constructor
• new TableObserver(editor
, tableNodeKey
)
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
tableNodeKey | string |
Defined in
lexical-table/src/LexicalTableObserver.ts:71
Properties
anchorCell
• anchorCell: null
| TableDOMCell
Defined in
lexical-table/src/LexicalTableObserver.ts:63
anchorCellNodeKey
• anchorCellNodeKey: null
| string
Defined in
lexical-table/src/LexicalTableObserver.ts:65
anchorX
• anchorX: number
Defined in
lexical-table/src/LexicalTableObserver.ts:60
anchorY
• anchorY: number
Defined in
lexical-table/src/LexicalTableObserver.ts:61
editor
• editor: LexicalEditor
Defined in
lexical-table/src/LexicalTableObserver.ts:67
focusCell
• focusCell: null
| TableDOMCell
Defined in
lexical-table/src/LexicalTableObserver.ts:64
focusCellNodeKey
• focusCellNodeKey: null
| string
Defined in
lexical-table/src/LexicalTableObserver.ts:66
focusX
• focusX: number
Defined in
lexical-table/src/LexicalTableObserver.ts:55
focusY
• focusY: number
Defined in
lexical-table/src/LexicalTableObserver.ts:56
hasHijackedSelectionStyles
• hasHijackedSelectionStyles: boolean
Defined in
lexical-table/src/LexicalTableObserver.ts:69
isHighlightingCells
• isHighlightingCells: boolean
Defined in
lexical-table/src/LexicalTableObserver.ts:59
listenersToRemove
• listenersToRemove: Set
<() => void
>
Defined in
lexical-table/src/LexicalTableObserver.ts:57
table
• table: TableDOMTable
Defined in
lexical-table/src/LexicalTableObserver.ts:58
tableNodeKey
• tableNodeKey: string
Defined in
lexical-table/src/LexicalTableObserver.ts:62
tableSelection
• tableSelection: null
| TableSelection
Defined in
lexical-table/src/LexicalTableObserver.ts:68
Methods
clearHighlight
▸ clearHighlight(): void
Returns
void
Defined in
lexical-table/src/LexicalTableObserver.ts:148
clearText
▸ clearText(): void
Returns
void
Defined in
lexical-table/src/LexicalTableObserver.ts:354
disableHighlightStyle
▸ disableHighlightStyle(): void
Returns
void
Defined in
lexical-table/src/LexicalTableObserver.ts:202
enableHighlightStyle
▸ enableHighlightStyle(): void
Returns
void
Defined in
lexical-table/src/LexicalTableObserver.ts:184
formatCells
▸ formatCells(type
): void
Parameters
Name | Type |
---|---|
type | TextFormatType |
Returns
void
Defined in
lexical-table/src/LexicalTableObserver.ts:327
getTable
▸ getTable(): TableDOMTable
Returns
TableDOMTable
Defined in
lexical-table/src/LexicalTableObserver.ts:94
removeListeners
▸ removeListeners(): void
Returns
void
Defined in
lexical-table/src/LexicalTableObserver.ts:98
setAnchorCellForSelection
▸ setAnchorCellForSelection(cell
): void
Parameters
Name | Type |
---|---|
cell | TableDOMCell |
Returns
void
Defined in
lexical-table/src/LexicalTableObserver.ts:307
setFocusCellForSelection
▸ setFocusCellForSelection(cell
, ignoreStart?
): void
Parameters
Name | Type | Default value |
---|---|---|
cell | TableDOMCell | undefined |
ignoreStart | boolean | false |
Returns
void
Defined in
lexical-table/src/LexicalTableObserver.ts:231
trackTable
▸ trackTable(): void
Returns
void
Defined in
lexical-table/src/LexicalTableObserver.ts:104
updateTableTableSelection
▸ updateTableTableSelection(selection
): void
Parameters
Name | Type |
---|---|
selection | null | TableSelection |
Returns
void
Defined in
lexical-table/src/LexicalTableObserver.ts:216