Class: TableSelection
@lexical/table.TableSelection
Implements
Constructors
constructor
• new TableSelection(tableKey
, anchor
, focus
): TableSelection
Parameters
Name | Type |
---|---|
tableKey | string |
anchor | PointType |
focus | PointType |
Returns
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:49
Properties
_cachedNodes
• _cachedNodes: null
| LexicalNode
[]
Implementation of
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:46
anchor
• anchor: PointType
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:44
dirty
• dirty: boolean
Implementation of
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:47
focus
• focus: PointType
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:45
tableKey
• tableKey: string
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:43
Methods
clone
▸ clone(): TableSelection
Returns
Implementation of
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:99
extract
▸ extract(): LexicalNode
[]
Returns
Implementation of
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:107
getCachedNodes
▸ getCachedNodes(): null
| LexicalNode
[]
Returns
null
| LexicalNode
[]
Implementation of
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:72
getNodes
▸ getNodes(): LexicalNode
[]
Returns
Implementation of
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:181
getShape
▸ getShape(): TableSelectionShape
Returns
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:132
getStartEndPoints
▸ getStartEndPoints(): [PointType
, PointType
]
Returns
Implementation of
BaseSelection.getStartEndPoints
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:59
getTextContent
▸ getTextContent(): string
Returns
string
Implementation of
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:333
insertNodes
▸ insertNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | LexicalNode [] |
Returns
void
Implementation of
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:119
insertRawText
▸ insertRawText(text
): void
Parameters
Name | Type |
---|---|
text | string |
Returns
void
Implementation of
Defined in
packages/lexical-table/src/LexicalTableSelection.ts:111
insertText
▸ insertText(): void