Class: DEPRECATED_GridRowNode
lexical.DEPRECATED_GridRowNode
Hierarchy
↳
DEPRECATED_GridRowNode
↳↳
TableRowNode
Constructors
constructor
• new DEPRECATED_GridRowNode(key?
)
Parameters
Name | Type |
---|---|
key? | string |
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:75
Methods
append
▸ append(...nodesToAppend
): DEPRECATED_GridRowNode
Parameters
Name | Type |
---|---|
...nodesToAppend | LexicalNode [] |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:367
canBeEmpty
▸ canBeEmpty(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:557
canExtractContents
▸ canExtractContents(): boolean
Returns
boolean
Inherited from
ElementNode.canExtractContents
Defined in
lexical/src/nodes/LexicalElementNode.ts:548
canIndent
▸ canIndent(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:533
canInsertAfter
▸ canInsertAfter(node
): boolean
Parameters
Name | Type |
---|---|
node | LexicalNode |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:554
canInsertTextAfter
▸ canInsertTextAfter(): boolean
Returns
boolean
Inherited from
ElementNode.canInsertTextAfter
Defined in
lexical/src/nodes/LexicalElementNode.ts:563
canInsertTextBefore
▸ canInsertTextBefore(): boolean
Returns
boolean
Inherited from
ElementNode.canInsertTextBefore
Defined in
lexical/src/nodes/LexicalElementNode.ts:560
canMergeWith
▸ canMergeWith(node
): boolean
Parameters
Name | Type |
---|---|
node | ElementNode |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:576
canReplaceWith
▸ canReplaceWith(replacement
): boolean
Parameters
Name | Type |
---|---|
replacement | LexicalNode |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:551
clear
▸ clear(): DEPRECATED_GridRowNode
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:361
collapseAtStart
▸ collapseAtStart(selection
): boolean
Parameters
Name | Type |
---|---|
selection | RangeSelection |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:541
excludeFromCopy
▸ excludeFromCopy(destination?
): boolean
Parameters
Name | Type |
---|---|
destination? | "clone" | "html" |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:544
exportJSON
▸ exportJSON(): SerializedElementNode
<SerializedLexicalNode
>
Controls how the this node is serialized to JSON. This is important for copy and paste between Lexical editors sharing the same namespace. It's also important if you're serializing to JSON for persistent storage somewhere. See Serialization & Deserialization.
Returns
SerializedElementNode
<SerializedLexicalNode
>
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:516
extractWithChild
▸ extractWithChild(child
, selection
, destination
): boolean
Parameters
Name | Type |
---|---|
child | LexicalNode |
selection | null | BaseSelection |
destination | "clone" | "html" |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:579
getAllTextNodes
▸ getAllTextNodes(): TextNode
[]
Returns
TextNode
[]
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:132
getChildAtIndex
▸ getChildAtIndex<T
>(index
): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Parameters
Name | Type |
---|---|
index | number |
Returns
null
| T
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:219
getChildren
▸ getChildren<T
>(): T
[]
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
T
[]
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:97
getChildrenKeys
▸ getChildrenKeys(): string
[]
Returns
string
[]
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:106
getChildrenSize
▸ getChildrenSize(): number
Returns
number
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:115
getDescendantByIndex
▸ getDescendantByIndex<T
>(index
): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Parameters
Name | Type |
---|---|
index | number |
Returns
null
| T
Inherited from
ElementNode.getDescendantByIndex
Defined in
lexical/src/nodes/LexicalElementNode.ts:175
getDirection
▸ getDirection(): null
| "ltr"
| "rtl"
Returns
null
| "ltr"
| "rtl"
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:280
getFirstChild
▸ getFirstChild<T
>(): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
null
| T
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:195
getFirstChildOrThrow
▸ getFirstChildOrThrow<T
>(): T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
T
Inherited from
ElementNode.getFirstChildOrThrow
Defined in
lexical/src/nodes/LexicalElementNode.ts:200
getFirstDescendant
▸ getFirstDescendant<T
>(): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
null
| T
Inherited from
ElementNode.getFirstDescendant
Defined in
lexical/src/nodes/LexicalElementNode.ts:147
getFormat
▸ getFormat(): number
Returns
number
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:85
getFormatType
▸ getFormatType(): ElementFormatType
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:89
getIndent
▸ getIndent(): number
Returns
number
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:93
getLastChild
▸ getLastChild<T
>(): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
null
| T
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:207
getLastChildOrThrow
▸ getLastChildOrThrow<T
>(): T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
T
Inherited from
ElementNode.getLastChildOrThrow
Defined in
lexical/src/nodes/LexicalElementNode.ts:212
getLastDescendant
▸ getLastDescendant<T
>(): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
null
| T
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:161
getTextContent
▸ getTextContent(): string
Returns the text content of the node. Override this for custom nodes that should have a representation in plain text format (for copy + paste, for example)
Returns
string
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:246
getTextContentSize
▸ getTextContentSize(): number
Returns the length of the string produced by calling getTextContent on this node.
Returns
number
Inherited from
ElementNode.getTextContentSize
Defined in
lexical/src/nodes/LexicalElementNode.ts:263
hasFormat
▸ hasFormat(type
): boolean
Parameters
Name | Type |
---|---|
type | ElementFormatType |
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:284
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:527
isDirty
▸ isDirty(): boolean
Returns true if this node has been marked dirty during this update cycle.
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:122
isEmpty
▸ isEmpty(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:119
isInline
▸ isInline(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:566
isLastChild
▸ isLastChild(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:127
isShadowRoot
▸ isShadowRoot(): boolean
Returns
boolean
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:573
select
▸ select(_anchorOffset?
, _focusOffset?
): RangeSelection
Parameters
Name | Type |
---|---|
_anchorOffset? | number |
_focusOffset? | number |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:294
selectEnd
▸ selectEnd(): RangeSelection
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:350
selectStart
▸ selectStart(): RangeSelection
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:339
setDirection
▸ setDirection(direction
): DEPRECATED_GridRowNode
Parameters
Name | Type |
---|---|
direction | null | "ltr" | "rtl" |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:370
setFormat
▸ setFormat(type
): DEPRECATED_GridRowNode
Parameters
Name | Type |
---|---|
type | ElementFormatType |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:375
setIndent
▸ setIndent(indentLevel
): DEPRECATED_GridRowNode
Parameters
Name | Type |
---|---|
indentLevel | number |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:380
splice
▸ splice(start
, deleteCount
, nodesToInsert
): DEPRECATED_GridRowNode
Parameters
Name | Type |
---|---|
start | number |
deleteCount | number |
nodesToInsert | LexicalNode [] |
Returns
Inherited from
Defined in
lexical/src/nodes/LexicalElementNode.ts:385