Class: DEPRECATED_GridNode
lexical.DEPRECATED_GridNode
Hierarchy
↳
DEPRECATED_GridNode
↳↳
TableNode
Constructors
constructor
• new DEPRECATED_GridNode(key?
)
Parameters
Name | Type |
---|---|
key? | string |
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:63
Methods
append
▸ append(...nodesToAppend
): DEPRECATED_GridNode
Parameters
Name | Type |
---|---|
...nodesToAppend | LexicalNode [] |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:300
canBeEmpty
▸ canBeEmpty(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:471
canExtractContents
▸ canExtractContents(): boolean
Returns
boolean
Inherited from
ElementNode.canExtractContents
Defined in
lexical/src/nodes/LexicalElementNode.ts:462
canIndent
▸ canIndent(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:453
canInsertAfter
▸ canInsertAfter(node
): boolean
Parameters
Name | Type |
---|---|
node | LexicalNode |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:468
canInsertTab
▸ canInsertTab(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:450
canInsertTextAfter
▸ canInsertTextAfter(): boolean
Returns
boolean
Inherited from
ElementNode.canInsertTextAfter
Defined in
lexical/src/nodes/LexicalElementNode.ts:477
canInsertTextBefore
▸ canInsertTextBefore(): boolean
Returns
boolean
Inherited from
ElementNode.canInsertTextBefore
Defined in
lexical/src/nodes/LexicalElementNode.ts:474
canMergeWith
▸ canMergeWith(node
): boolean
Parameters
Name | Type |
---|---|
node | ElementNode |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:490
canReplaceWith
▸ canReplaceWith(replacement
): boolean
Parameters
Name | Type |
---|---|
replacement | LexicalNode |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:465
clear
▸ clear(): DEPRECATED_GridNode
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:294
collapseAtStart
▸ collapseAtStart(selection
): boolean
Parameters
Name | Type |
---|---|
selection | RangeSelection |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:456
excludeFromCopy
▸ excludeFromCopy(destination?
): boolean
Parameters
Name | Type |
---|---|
destination? | "html" | "clone" |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:459
exportJSON
▸ exportJSON(): SerializedElementNode
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:436
extractWithChild
▸ extractWithChild(child
, selection
, destination
): boolean
Parameters
Name | Type |
---|---|
child | LexicalNode |
selection | null | RangeSelection | NodeSelection | GridSelection |
destination | "html" | "clone" |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:493
getAllTextNodes
▸ getAllTextNodes(): TextNode
[]
Returns
TextNode
[]
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:115
getChildAtIndex
▸ getChildAtIndex<T
>(index
): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode <T > |
Parameters
Name | Type |
---|---|
index | number |
Returns
null
| T
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:203
getChildren
▸ getChildren<T
>(): T
[]
Type parameters
Name | Type |
---|---|
T | extends LexicalNode <T > |
Returns
T
[]
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:83
getChildrenKeys
▸ getChildrenKeys(): string
[]
Returns
string
[]
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:95
getChildrenSize
▸ getChildrenSize(): number
Returns
number
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:98
getDescendantByIndex
▸ getDescendantByIndex<T
>(index
): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode <T > |
Parameters
Name | Type |
---|---|
index | number |
Returns
null
| T
Inherited from
ElementNode.getDescendantByIndex
Defined in
lexical/src/nodes/LexicalElementNode.ts:158
getDirection
▸ getDirection(): null
| "ltr"
| "rtl"
Returns
null
| "ltr"
| "rtl"
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:229
getFirstChild
▸ getFirstChild<T
>(): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode <T > |
Returns
null
| T
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:178
getFirstChildOrThrow
▸ getFirstChildOrThrow<T
>(): T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode <T > |
Returns
T
Inherited from
ElementNode.getFirstChildOrThrow
Defined in
lexical/src/nodes/LexicalElementNode.ts:187
getFirstDescendant
▸ getFirstDescendant<T
>(): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode <T > |
Returns
null
| T
Inherited from
ElementNode.getFirstDescendant
Defined in
lexical/src/nodes/LexicalElementNode.ts:130
getFormat
▸ getFormat(): number
Returns
number
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:71
getFormatType
▸ getFormatType(): ElementFormatType
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:75
getIndent
▸ getIndent(): number
Returns
number
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:79
getLastChild
▸ getLastChild<T
>(): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode <T > |
Returns
null
| T
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:194
getLastDescendant
▸ getLastDescendant<T
>(): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode <T > |
Returns
null
| T
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:144
getTextContent
▸ getTextContent(): string
Returns
string
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:212
hasFormat
▸ hasFormat(type
): boolean
Parameters
Name | Type |
---|---|
type | ElementFormatType |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:233
insertNewAfter
▸ insertNewAfter(selection
): null
| LexicalNode
Parameters
Name | Type |
---|---|
selection | RangeSelection |
Returns
null
| LexicalNode
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:447
isDirty
▸ isDirty(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:105
isEmpty
▸ isEmpty(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:102
isInline
▸ isInline(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:480
isLastChild
▸ isLastChild(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:110
isShadowRoot
▸ isShadowRoot(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:487
select
▸ select(_anchorOffset?
, _focusOffset?
): RangeSelection
Parameters
Name | Type |
---|---|
_anchorOffset? | number |
_focusOffset? | number |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:243
selectEnd
▸ selectEnd(): RangeSelection
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:283
selectStart
▸ selectStart(): RangeSelection
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:272
setDirection
▸ setDirection(direction
): DEPRECATED_GridNode
Parameters
Name | Type |
---|---|
direction | null | "ltr" | "rtl" |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:303
setFormat
▸ setFormat(type
): DEPRECATED_GridNode
Parameters
Name | Type |
---|---|
type | ElementFormatType |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:308
setIndent
▸ setIndent(indentLevel
): DEPRECATED_GridNode
Parameters
Name | Type |
---|---|
indentLevel | number |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:313
splice
▸ splice(start
, deleteCount
, nodesToInsert
): DEPRECATED_GridNode
Parameters
Name | Type |
---|---|
start | number |
deleteCount | number |
nodesToInsert | LexicalNode [] |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:318