lexical_table.TableSelection
TableSelection
@lexical/table.TableSelection
實作
建構函式
constructor
• new TableSelection(tableKey
, anchor
, focus
): TableSelection
參數
名稱 | 類型 |
---|---|
tableKey | string |
anchor | PointType |
focus | PointType |
回傳值
定義於
packages/lexical-table/src/LexicalTableSelection.ts:49
屬性
_cachedNodes
• _cachedNodes: null
| LexicalNode
[]
實作於
定義於
packages/lexical-table/src/LexicalTableSelection.ts:46
anchor
• anchor: PointType
定義於
packages/lexical-table/src/LexicalTableSelection.ts:44
dirty
• dirty: boolean
實作於
定義於
packages/lexical-table/src/LexicalTableSelection.ts:47
focus
• focus: PointType
定義於
packages/lexical-table/src/LexicalTableSelection.ts:45
tableKey
• tableKey: string
定義於
packages/lexical-table/src/LexicalTableSelection.ts:43
函式
clone
▸ clone(): TableSelection
回傳值
實作於
定義於
packages/lexical-table/src/LexicalTableSelection.ts:99
extract
▸ extract(): LexicalNode
[]
回傳值
實作於
定義於
packages/lexical-table/src/LexicalTableSelection.ts:107
getCachedNodes
▸ getCachedNodes(): null
| LexicalNode
[]
回傳值
null
| LexicalNode
[]
實作於
定義於
packages/lexical-table/src/LexicalTableSelection.ts:72
getNodes
▸ getNodes(): LexicalNode
[]
回傳值
實作於
定義於
packages/lexical-table/src/LexicalTableSelection.ts:181
getShape
▸ getShape(): TableSelectionShape
回傳值
定義於
packages/lexical-table/src/LexicalTableSelection.ts:132
getStartEndPoints
▸ getStartEndPoints(): [PointType
, PointType
]
回傳值
實作於
BaseSelection.getStartEndPoints
定義於
packages/lexical-table/src/LexicalTableSelection.ts:59
getTextContent
▸ getTextContent(): string
回傳值
string
實作於
定義於
packages/lexical-table/src/LexicalTableSelection.ts:333
insertNodes
▸ insertNodes(nodes
): void
參數
名稱 | 類型 |
---|---|
nodes | LexicalNode [] |