Class: GridSelection
@lexical/table.GridSelection
Implements
Constructors
constructor
• new GridSelection(gridKey
, anchor
, focus
)
Parameters
Name | Type |
---|---|
gridKey | string |
anchor | PointType |
focus | PointType |
Defined in
lexical-table/src/LexicalGridSelection.ts:43
Properties
_cachedNodes
• _cachedNodes: null
| LexicalNode
[]
Implementation of
Defined in
lexical-table/src/LexicalGridSelection.ts:40
anchor
• anchor: PointType
Defined in
lexical-table/src/LexicalGridSelection.ts:38
dirty
• dirty: boolean
Implementation of
Defined in
lexical-table/src/LexicalGridSelection.ts:41
focus
• focus: PointType
Defined in
lexical-table/src/LexicalGridSelection.ts:39
gridKey
• gridKey: string
Defined in
lexical-table/src/LexicalGridSelection.ts:37
Methods
clone
▸ clone(): GridSelection
Returns
Implementation of
Defined in
lexical-table/src/LexicalGridSelection.ts:93
extract
▸ extract(): LexicalNode
[]
Returns
Implementation of
Defined in
lexical-table/src/LexicalGridSelection.ts:101
getCachedNodes
▸ getCachedNodes(): null
| LexicalNode
[]
Returns
null
| LexicalNode
[]
Implementation of
Defined in
lexical-table/src/LexicalGridSelection.ts:66
getNodes
▸ getNodes(): LexicalNode
[]
Returns
Implementation of
Defined in
lexical-table/src/LexicalGridSelection.ts:175
getShape
▸ getShape(): GridSelectionShape
Returns
Defined in
lexical-table/src/LexicalGridSelection.ts:126
getStartEndPoints
▸ getStartEndPoints(): [PointType
, PointType
]
Returns
Implementation of
BaseSelection.getStartEndPoints
Defined in
lexical-table/src/LexicalGridSelection.ts:53
getTextContent
▸ getTextContent(): string
Returns
string
Implementation of
Defined in
lexical-table/src/LexicalGridSelection.ts:333
insertNodes
▸ insertNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | LexicalNode [] |
Returns
void
Implementation of
Defined in
lexical-table/src/LexicalGridSelection.ts:113
insertRawText
▸ insertRawText(text
): void
Parameters
Name | Type |
---|---|
text | string |
Returns
void
Implementation of
Defined in
lexical-table/src/LexicalGridSelection.ts:105
insertText
▸ insertText(): void
Returns
void
Implementation of
Defined in
lexical-table/src/LexicalGridSelection.ts:109
is
▸ is(selection
): boolean
Parameters
Name | Type |
---|---|
selection | null | BaseSelection |
Returns
boolean
Implementation of
Defined in
lexical-table/src/LexicalGridSelection.ts:74
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
Defined in
lexical-table/src/LexicalGridSelection.ts:62
isCollapsed
▸ isCollapsed(): boolean
Returns
boolean
Implementation of
Defined in
lexical-table/src/LexicalGridSelection.ts:97
set
▸ set(gridKey
, anchorCellKey
, focusCellKey
): void
Parameters
Name | Type |
---|---|
gridKey | string |
anchorCellKey | string |
focusCellKey | string |
Returns
void
Defined in
lexical-table/src/LexicalGridSelection.ts:85
setCachedNodes
▸ setCachedNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | null | LexicalNode [] |
Returns
void
Implementation of
Defined in
lexical-table/src/LexicalGridSelection.ts:70