Class: TableSelection
@lexical/table.TableSelection
Constructors
constructor
• new TableSelection(editor
, tableNodeKey
)
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
tableNodeKey | string |
Defined in
lexical-table/src/LexicalTableSelection.ts:78
Properties
anchorCell
• anchorCell: null
| Cell
Defined in
lexical-table/src/LexicalTableSelection.ts:70
anchorCellNodeKey
• anchorCellNodeKey: null
| string
Defined in
lexical-table/src/LexicalTableSelection.ts:72
anchorX
• anchorX: number
Defined in
lexical-table/src/LexicalTableSelection.ts:67
anchorY
• anchorY: number
Defined in
lexical-table/src/LexicalTableSelection.ts:68
editor
• editor: LexicalEditor
Defined in
lexical-table/src/LexicalTableSelection.ts:74
focusCell
• focusCell: null
| Cell
Defined in
lexical-table/src/LexicalTableSelection.ts:71
focusCellNodeKey
• focusCellNodeKey: null
| string
Defined in
lexical-table/src/LexicalTableSelection.ts:73
focusX
• focusX: number
Defined in
lexical-table/src/LexicalTableSelection.ts:62
focusY
• focusY: number
Defined in
lexical-table/src/LexicalTableSelection.ts:63
grid
• grid: Grid
Defined in
lexical-table/src/LexicalTableSelection.ts:65
gridSelection
• gridSelection: null
| GridSelection
Defined in
lexical-table/src/LexicalTableSelection.ts:75
hasHijackedSelectionStyles
• hasHijackedSelectionStyles: boolean
Defined in
lexical-table/src/LexicalTableSelection.ts:76
isHighlightingCells
• isHighlightingCells: boolean
Defined in
lexical-table/src/LexicalTableSelection.ts:66
listenersToRemove
• listenersToRemove: Set
<() => void
>
Defined in
lexical-table/src/LexicalTableSelection.ts:64
tableNodeKey
• tableNodeKey: string
Defined in
lexical-table/src/LexicalTableSelection.ts:69
Methods
clearHighlight
▸ clearHighlight(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:155
clearText
▸ clearText(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:360
disableHighlightStyle
▸ disableHighlightStyle(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:209
enableHighlightStyle
▸ enableHighlightStyle(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:191
formatCells
▸ formatCells(type
): void
Parameters
Name | Type |
---|---|
type | TextFormatType |
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:333
getGrid
▸ getGrid(): Grid
Returns
Grid
Defined in
lexical-table/src/LexicalTableSelection.ts:101
removeListeners
▸ removeListeners(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:105
setAnchorCellForSelection
▸ setAnchorCellForSelection(cell
): void
Parameters
Name | Type |
---|---|
cell | Cell |
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:313
setFocusCellForSelection
▸ setFocusCellForSelection(cell
, ignoreStart?
): void
Parameters
Name | Type | Default value |
---|---|---|
cell | Cell | undefined |
ignoreStart | boolean | false |
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:238
trackTableGrid
▸ trackTableGrid(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:111
updateTableGridSelection
▸ updateTableGridSelection(selection
): void
Parameters
Name | Type |
---|---|
selection | null | GridSelection |
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:223