Class: TableSelection
lexical-table/src.TableSelection
Constructors
constructor
• new TableSelection(editor
, tableNodeKey
)
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
tableNodeKey | string |
Defined in
lexical-table/src/LexicalTableSelection.ts:97
Properties
anchorCell
• anchorCell: null
| Cell
Defined in
lexical-table/src/LexicalTableSelection.ts:89
anchorCellNodeKey
• anchorCellNodeKey: null
| string
Defined in
lexical-table/src/LexicalTableSelection.ts:91
currentX
• currentX: number
Defined in
lexical-table/src/LexicalTableSelection.ts:81
currentY
• currentY: number
Defined in
lexical-table/src/LexicalTableSelection.ts:82
editor
• editor: LexicalEditor
Defined in
lexical-table/src/LexicalTableSelection.ts:93
focusCell
• focusCell: null
| Cell
Defined in
lexical-table/src/LexicalTableSelection.ts:90
focusCellNodeKey
• focusCellNodeKey: null
| string
Defined in
lexical-table/src/LexicalTableSelection.ts:92
grid
• grid: Grid
Defined in
lexical-table/src/LexicalTableSelection.ts:84
gridSelection
• gridSelection: null
| GridSelection
Defined in
lexical-table/src/LexicalTableSelection.ts:94
hasHijackedSelectionStyles
• hasHijackedSelectionStyles: boolean
Defined in
lexical-table/src/LexicalTableSelection.ts:95
isHighlightingCells
• isHighlightingCells: boolean
Defined in
lexical-table/src/LexicalTableSelection.ts:85
listenersToRemove
• listenersToRemove: Set
<() => void
>
Defined in
lexical-table/src/LexicalTableSelection.ts:83
startX
• startX: number
Defined in
lexical-table/src/LexicalTableSelection.ts:86
startY
• startY: number
Defined in
lexical-table/src/LexicalTableSelection.ts:87
tableNodeKey
• tableNodeKey: string
Defined in
lexical-table/src/LexicalTableSelection.ts:88
Methods
adjustFocusCellForSelection
▸ adjustFocusCellForSelection(cell
, ignoreStart?
): void
Parameters
Name | Type | Default value |
---|---|---|
cell | Cell | undefined |
ignoreStart | boolean | false |
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:257
clearHighlight
▸ clearHighlight(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:174
clearText
▸ clearText(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:371
disableHighlightStyle
▸ disableHighlightStyle(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:223
enableHighlightStyle
▸ enableHighlightStyle(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:210
formatCells
▸ formatCells(type
): void
Parameters
Name | Type |
---|---|
type | TextFormatType |
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:344
getGrid
▸ getGrid(): Grid
Returns
Grid
Defined in
lexical-table/src/LexicalTableSelection.ts:120
removeListeners
▸ removeListeners(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:124
setAnchorCellForSelection
▸ setAnchorCellForSelection(cell
): void
Parameters
Name | Type |
---|---|
cell | Cell |
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:325
trackTableGrid
▸ trackTableGrid(): void
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:130
updateTableGridSelection
▸ updateTableGridSelection(selection
): void
Parameters
Name | Type |
---|---|
selection | null | GridSelection |
Returns
void
Defined in
lexical-table/src/LexicalTableSelection.ts:236