Skip to main content

Class: GridSelection

lexical/src.GridSelection

Implements

Constructors

constructor

new GridSelection(gridKey, anchor, focus)

Parameters

NameType
gridKeystring
anchorPointType
focusPointType

Defined in

lexical/src/LexicalSelection.ts:358

Properties

_cachedNodes

_cachedNodes: null | LexicalNode[]

Defined in

lexical/src/LexicalSelection.ts:356


anchor

anchor: PointType

Defined in

lexical/src/LexicalSelection.ts:353


dirty

dirty: boolean

Implementation of

BaseSelection.dirty

Defined in

lexical/src/LexicalSelection.ts:355


focus

focus: PointType

Defined in

lexical/src/LexicalSelection.ts:354


gridKey

gridKey: string

Defined in

lexical/src/LexicalSelection.ts:352

Methods

clone

clone(): GridSelection

Returns

GridSelection

Implementation of

BaseSelection.clone

Defined in

lexical/src/LexicalSelection.ts:385


extract

extract(): LexicalNode[]

Returns

LexicalNode[]

Implementation of

BaseSelection.extract

Defined in

lexical/src/LexicalSelection.ts:401


getCharacterOffsets

getCharacterOffsets(): [number, number]

Returns

[number, number]

Defined in

lexical/src/LexicalSelection.ts:397


getNodes

getNodes(): LexicalNode[]

Returns

LexicalNode[]

Implementation of

BaseSelection.getNodes

Defined in

lexical/src/LexicalSelection.ts:442


getShape

getShape(): GridSelectionShape

Returns

GridSelectionShape

Defined in

lexical/src/LexicalSelection.ts:413


getTextContent

getTextContent(): string

Returns

string

Implementation of

BaseSelection.getTextContent

Defined in

lexical/src/LexicalSelection.ts:490


insertRawText

insertRawText(text): void

Parameters

NameType
textstring

Returns

void

Implementation of

BaseSelection.insertRawText

Defined in

lexical/src/LexicalSelection.ts:405


insertText

insertText(): void

Returns

void

Defined in

lexical/src/LexicalSelection.ts:409


is

is(selection): boolean

Parameters

NameType
selectionnull | RangeSelection | NodeSelection | GridSelection

Returns

boolean

Implementation of

BaseSelection.is

Defined in

lexical/src/LexicalSelection.ts:368


isBackward

isBackward(): boolean

Returns

boolean

Defined in

lexical/src/LexicalSelection.ts:393


isCollapsed

isCollapsed(): boolean

Returns

boolean

Defined in

lexical/src/LexicalSelection.ts:389


set

set(gridKey, anchorCellKey, focusCellKey): void

Parameters

NameType
gridKeystring
anchorCellKeystring
focusCellKeystring

Returns

void

Defined in

lexical/src/LexicalSelection.ts:377