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:109
Properties
abortController
• abortController: AbortController
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:106
anchorCell
• anchorCell: null
| TableDOMCell
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:97
anchorCellNodeKey
• anchorCellNodeKey: null
| string
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:99
anchorX
• anchorX: number
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:94
anchorY
• anchorY: number
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:95
editor
• editor: LexicalEditor
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:101
focusCell
• focusCell: null
| TableDOMCell
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:98
focusCellNodeKey
• focusCellNodeKey: null
| string
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:100
focusX
• focusX: number
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:89
focusY
• focusY: number
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:90
hasHijackedSelectionStyles
• hasHijackedSelectionStyles: boolean
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:103
isHighlightingCells
• isHighlightingCells: boolean
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:93
isSelecting
• isSelecting: boolean
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:104
listenerOptions
• listenerOptions: Object
Type declaration
Name | Type |
---|---|
signal | AbortSignal |
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:107
listenersToRemove
• listenersToRemove: Set
<() => void
>
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:91
shouldCheckSelection
• shouldCheckSelection: boolean
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:105
table
• table: TableDOMTable
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:92
tableNodeKey
• tableNodeKey: string
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:96
tableSelection
• tableSelection: null
| TableSelection
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:102
Methods
$lookup
▸ $lookup(): Object
Returns
Object
Name | Type |
---|---|
tableElement | HTMLTableElementWithWithTableSelectionState |
tableNode | TableNode |
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:148
clearHighlight
▸ clearHighlight(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:201
clearText
▸ clearText(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:412
disableHighlightStyle
▸ disableHighlightStyle(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:243
enableHighlightStyle
▸ enableHighlightStyle(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:226
formatCells
▸ formatCells(type
): void
Parameters
Name | Type |
---|---|
type | TextFormatType |
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:381
getTable
▸ getTable(): TableDOMTable
Returns
TableDOMTable
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:136
removeListeners
▸ removeListeners(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:140
setAnchorCellForSelection
▸ setAnchorCellForSelection(cell
): void
Parameters
Name | Type |
---|---|
cell | TableDOMCell |
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:361
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:295
trackTable
▸ trackTable(): void
Returns
void
Defined in
packages/lexical-table/src/LexicalTableObserver.ts:155
updateTableTableSelection
▸ updateTableTableSelection(selection
): void
Parameters
Name | Type |
---|---|
selection | null | TableSelection |
Returns
void