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:74
Methods
append
▸ append(...nodesToAppend
): DEPRECATED_GridNode
Parameters
Name | Type |
---|---|
...nodesToAppend | LexicalNode [] |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:349
canBeEmpty
▸ canBeEmpty(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:530
canExtractContents
▸ canExtractContents(): boolean
Returns
boolean
Inherited from
ElementNode.canExtractContents
Defined in
lexical/src/nodes/LexicalElementNode.ts:521
canIndent
▸ canIndent(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:507
canInsertAfter
▸ canInsertAfter(node
): boolean
Parameters
Name | Type |
---|---|
node | LexicalNode |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:527
canInsertTab
▸ canInsertTab(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:504
canInsertTextAfter
▸ canInsertTextAfter(): boolean
Returns
boolean
Inherited from
ElementNode.canInsertTextAfter
Defined in
lexical/src/nodes/LexicalElementNode.ts:536
canInsertTextBefore
▸ canInsertTextBefore(): boolean
Returns
boolean
Inherited from
ElementNode.canInsertTextBefore
Defined in
lexical/src/nodes/LexicalElementNode.ts:533
canMergeWith
▸ canMergeWith(node
): boolean
Parameters
Name | Type |
---|---|
node | ElementNode |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:549
canReplaceWith
▸ canReplaceWith(replacement
): boolean
Parameters
Name | Type |
---|---|
replacement | LexicalNode |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:524
clear
▸ clear(): DEPRECATED_GridNode
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:343
collapseAtStart
▸ collapseAtStart(selection
): boolean
Parameters
Name | Type |
---|---|
selection | RangeSelection |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:515
excludeFromCopy
▸ excludeFromCopy(destination?
): boolean
Parameters
Name | Type |
---|---|
destination? | "clone" | "html" |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:518
extractWithChild
▸ extractWithChild(child
, selection
, destination
): boolean
Parameters
Name | Type |
---|---|
child | LexicalNode |
selection | null | RangeSelection | NodeSelection | GridSelection |
destination | "clone" | "html" |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:552
getAllTextNodes
▸ getAllTextNodes(): TextNode
[]
Returns
TextNode
[]
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:131
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:218
getChildren
▸ getChildren<T
>(): T
[]
Type parameters
Name | Type |
---|---|
T | extends LexicalNode <T > |
Returns
T
[]
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:96
getChildrenKeys
▸ getChildrenKeys(): string
[]
Returns
string
[]
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:105
getChildrenSize
▸ getChildrenSize(): number
Returns
number
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:114
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:174
getDirection
▸ getDirection(): null
| "ltr"
| "rtl"
Returns
null
| "ltr"
| "rtl"
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:262
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:194
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:199
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:146
getFormat
▸ getFormat(): number
Returns
number
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:84
getFormatType
▸ getFormatType(): ElementFormatType
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:88
getIndent
▸ getIndent(): number
Returns
number
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:92
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:206
getLastChildOrThrow
▸ getLastChildOrThrow<T
>(): T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode <T > |
Returns
T
Inherited from
ElementNode.getLastChildOrThrow
Defined in
lexical/src/nodes/LexicalElementNode.ts:211
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:160
getTextContent
▸ getTextContent(): string
Returns
string
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:245
hasFormat
▸ hasFormat(type
): boolean
Parameters
Name | Type |
---|---|
type | ElementFormatType |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:266
insertNewAfter
▸ insertNewAfter(selection
, restoreSelection?
): null
| LexicalNode
Parameters
Name | Type |
---|---|
selection | RangeSelection |
restoreSelection? | boolean |
Returns
null
| LexicalNode
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:498
isDirty
▸ isDirty(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:121
isEmpty
▸ isEmpty(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:118
isInline
▸ isInline(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:539
isLastChild
▸ isLastChild(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:126
isShadowRoot
▸ isShadowRoot(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:546
select
▸ select(_anchorOffset?
, _focusOffset?
): RangeSelection
Parameters
Name | Type |
---|---|
_anchorOffset? | number |
_focusOffset? | number |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:276
selectEnd
▸ selectEnd(): RangeSelection
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:332
selectStart
▸ selectStart(): RangeSelection
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:321
setDirection
▸ setDirection(direction
): DEPRECATED_GridNode
Parameters
Name | Type |
---|---|
direction | null | "ltr" | "rtl" |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:352
setFormat
▸ setFormat(type
): DEPRECATED_GridNode
Parameters
Name | Type |
---|---|
type | ElementFormatType |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:357
setIndent
▸ setIndent(indentLevel
): DEPRECATED_GridNode
Parameters
Name | Type |
---|---|
indentLevel | number |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:362
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:367