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:75
Properties
anchorCell
• anchorCell: null
| Cell
Defined in
lexical-table/src/LexicalTableSelection.ts:67
anchorCellNodeKey
• anchorCellNodeKey: null
| string
Defined in
lexical-table/src/LexicalTableSelection.ts:69
anchorX
• anchorX: number
Defined in
lexical-table/src/LexicalTableSelection.ts:64
anchorY
• anchorY: number
Defined in
lexical-table/src/LexicalTableSelection.ts:65
editor
• editor: LexicalEditor
Defined in
lexical-table/src/LexicalTableSelection.ts:71
focusCell
• focusCell: null
| Cell
Defined in
lexical-table/src/LexicalTableSelection.ts:68
focusCellNodeKey
• focusCellNodeKey: null
| string
Defined in
lexical-table/src/LexicalTableSelection.ts:70
focusX
• focusX: number
Defined in
lexical-table/src/LexicalTableSelection.ts:59
focusY
• focusY: number
Defined in
lexical-table/src/LexicalTableSelection.ts:60
grid
• grid: Grid
Defined in
lexical-table/src/LexicalTableSelection.ts:62
gridSelection
• gridSelection: null
| GridSelection
Defined in
lexical-table/src/LexicalTableSelection.ts:72
hasHijackedSelectionStyles
• hasHijackedSelectionStyles: boolean
Defined in
lexical-table/src/LexicalTableSelection.ts:73
isHighlightingCells
• isHighlightingCells: boolean
Defined in
lexical-table/src/LexicalTableSelection.ts:63
listenersToRemove
• listenersToRemove: Set
<() => void
>
Defined in
lexical-table/src/LexicalTableSelection.ts:61
tableNodeKey
• tableNodeKey: string
Defined in
lexical-table/src/LexicalTableSelection.ts:66
Methods
clearHighlight
▸ clearHighlight(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:152
clearText
▸ clearText(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:342
disableHighlightStyle
▸ disableHighlightStyle(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:200
enableHighlightStyle
▸ enableHighlightStyle(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:187
formatCells
▸ formatCells(type
): void
Parameters
Name | Type |
---|---|
type | TextFormatType |
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:315
getGrid
▸ getGrid(): Grid
Returns
Grid
Defined in
lexical-table/src/LexicalTableSelection.ts:98
removeListeners
▸ removeListeners(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:102
setAnchorCellForSelection
▸ setAnchorCellForSelection(cell
): void
Parameters
Name | Type |
---|---|
cell | Cell |
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:298
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:224
trackTableGrid
▸ trackTableGrid(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:108
updateTableGridSelection
▸ updateTableGridSelection(selection
): void
Parameters
Name | Type |
---|---|
selection | null | GridSelection |
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:213