Skip to main content

Class: TableSelection

@lexical/table.TableSelection

Constructors

constructor

new TableSelection(editor, tableNodeKey)

Parameters

NameType
editorLexicalEditor
tableNodeKeystring

Defined in

lexical-table/src/LexicalTableSelection.ts:98

Properties

anchorCell

anchorCell: null | Cell

Defined in

lexical-table/src/LexicalTableSelection.ts:90


anchorCellNodeKey

anchorCellNodeKey: null | string

Defined in

lexical-table/src/LexicalTableSelection.ts:92


currentX

currentX: number

Defined in

lexical-table/src/LexicalTableSelection.ts:82


currentY

currentY: number

Defined in

lexical-table/src/LexicalTableSelection.ts:83


editor

editor: LexicalEditor

Defined in

lexical-table/src/LexicalTableSelection.ts:94


focusCell

focusCell: null | Cell

Defined in

lexical-table/src/LexicalTableSelection.ts:91


focusCellNodeKey

focusCellNodeKey: null | string

Defined in

lexical-table/src/LexicalTableSelection.ts:93


grid

grid: Grid

Defined in

lexical-table/src/LexicalTableSelection.ts:85


gridSelection

gridSelection: null | GridSelection

Defined in

lexical-table/src/LexicalTableSelection.ts:95


hasHijackedSelectionStyles

hasHijackedSelectionStyles: boolean

Defined in

lexical-table/src/LexicalTableSelection.ts:96


isHighlightingCells

isHighlightingCells: boolean

Defined in

lexical-table/src/LexicalTableSelection.ts:86


listenersToRemove

listenersToRemove: Set<() => void>

Defined in

lexical-table/src/LexicalTableSelection.ts:84


startX

startX: number

Defined in

lexical-table/src/LexicalTableSelection.ts:87


startY

startY: number

Defined in

lexical-table/src/LexicalTableSelection.ts:88


tableNodeKey

tableNodeKey: string

Defined in

lexical-table/src/LexicalTableSelection.ts:89

Methods

adjustFocusCellForSelection

adjustFocusCellForSelection(cell, ignoreStart?): void

Parameters

NameTypeDefault value
cellCellundefined
ignoreStartbooleanfalse

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:250


clearHighlight

clearHighlight(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:175


clearText

clearText(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:374


disableHighlightStyle

disableHighlightStyle(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:224


enableHighlightStyle

enableHighlightStyle(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:211


formatCells

formatCells(type): void

Parameters

NameType
typeTextFormatType

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:347


getGrid

getGrid(): Grid

Returns

Grid

Defined in

lexical-table/src/LexicalTableSelection.ts:121


removeListeners

removeListeners(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:125


setAnchorCellForSelection

setAnchorCellForSelection(cell): void

Parameters

NameType
cellCell

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:323


trackTableGrid

trackTableGrid(): void

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:131


updateTableGridSelection

updateTableGridSelection(selection): void

Parameters

NameType
selectionnull | GridSelection

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:237