Skip to main content

Class: TableSelection

@lexical/table.TableSelection

Implements

Constructors

constructor

new TableSelection(tableKey, anchor, focus)

Parameters

NameType
tableKeystring
anchorPointType
focusPointType

Defined in

lexical-table/src/LexicalTableSelection.ts:49

Properties

_cachedNodes

_cachedNodes: null | LexicalNode[]

Implementation of

BaseSelection._cachedNodes

Defined in

lexical-table/src/LexicalTableSelection.ts:46


anchor

anchor: PointType

Defined in

lexical-table/src/LexicalTableSelection.ts:44


dirty

dirty: boolean

Implementation of

BaseSelection.dirty

Defined in

lexical-table/src/LexicalTableSelection.ts:47


focus

focus: PointType

Defined in

lexical-table/src/LexicalTableSelection.ts:45


tableKey

tableKey: string

Defined in

lexical-table/src/LexicalTableSelection.ts:43

Methods

clone

clone(): TableSelection

Returns

TableSelection

Implementation of

BaseSelection.clone

Defined in

lexical-table/src/LexicalTableSelection.ts:99


extract

extract(): LexicalNode[]

Returns

LexicalNode[]

Implementation of

BaseSelection.extract

Defined in

lexical-table/src/LexicalTableSelection.ts:107


getCachedNodes

getCachedNodes(): null | LexicalNode[]

Returns

null | LexicalNode[]

Implementation of

BaseSelection.getCachedNodes

Defined in

lexical-table/src/LexicalTableSelection.ts:72


getNodes

getNodes(): LexicalNode[]

Returns

LexicalNode[]

Implementation of

BaseSelection.getNodes

Defined in

lexical-table/src/LexicalTableSelection.ts:181


getShape

getShape(): TableSelectionShape

Returns

TableSelectionShape

Defined in

lexical-table/src/LexicalTableSelection.ts:132


getStartEndPoints

getStartEndPoints(): [PointType, PointType]

Returns

[PointType, PointType]

Implementation of

BaseSelection.getStartEndPoints

Defined in

lexical-table/src/LexicalTableSelection.ts:59


getTextContent

getTextContent(): string

Returns

string

Implementation of

BaseSelection.getTextContent

Defined in

lexical-table/src/LexicalTableSelection.ts:333


insertNodes

insertNodes(nodes): void

Parameters

NameType
nodesLexicalNode[]

Returns

void

Implementation of

BaseSelection.insertNodes

Defined in

lexical-table/src/LexicalTableSelection.ts:119


insertRawText

insertRawText(text): void

Parameters

NameType
textstring

Returns

void

Implementation of

BaseSelection.insertRawText

Defined in

lexical-table/src/LexicalTableSelection.ts:111


insertText

insertText(): void

Returns

void

Implementation of

BaseSelection.insertText

Defined in

lexical-table/src/LexicalTableSelection.ts:115


is

is(selection): boolean

Parameters

NameType
selectionnull | BaseSelection

Returns

boolean

Implementation of

BaseSelection.is

Defined in

lexical-table/src/LexicalTableSelection.ts:80


isBackward

isBackward(): boolean

Returns whether the Selection is "backwards", meaning the focus logically precedes the anchor in the EditorState.

Returns

boolean

true if the Selection is backwards, false otherwise.

Implementation of

BaseSelection.isBackward

Defined in

lexical-table/src/LexicalTableSelection.ts:68


isCollapsed

isCollapsed(): boolean

Returns

boolean

Implementation of

BaseSelection.isCollapsed

Defined in

lexical-table/src/LexicalTableSelection.ts:103


set

set(tableKey, anchorCellKey, focusCellKey): void

Parameters

NameType
tableKeystring
anchorCellKeystring
focusCellKeystring

Returns

void

Defined in

lexical-table/src/LexicalTableSelection.ts:91


setCachedNodes

setCachedNodes(nodes): void

Parameters

NameType
nodesnull | LexicalNode[]

Returns

void

Implementation of

BaseSelection.setCachedNodes

Defined in

lexical-table/src/LexicalTableSelection.ts:76