Class: OverflowNode
@lexical/overflow.OverflowNode
Hierarchy
↳
OverflowNode
Constructors
constructor
• new OverflowNode(key?
)
Parameters
Name | Type |
---|---|
key? | string |
Overrides
Defined in
lexical-overflow/src/index.ts:40
Methods
createDOM
▸ createDOM(config
): HTMLElement
Parameters
Name | Type |
---|---|
config | EditorConfig |
Returns
HTMLElement
Overrides
ElementNode.createDOM
Defined in
lexical-overflow/src/index.ts:52
excludeFromCopy
▸ excludeFromCopy(): boolean
Returns
boolean
Overrides
Defined in
lexical-overflow/src/index.ts:73
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
>
Overrides
Defined in
lexical-overflow/src/index.ts:45
insertNewAfter
▸ insertNewAfter(selection
, restoreSelection?
): null
| LexicalNode
Parameters
Name | Type | Default value |
---|---|---|
selection | RangeSelection | undefined |
restoreSelection | boolean | true |
Returns
null
| LexicalNode
Overrides
Defined in
lexical-overflow/src/index.ts:65
updateDOM
▸ updateDOM(prevNode
, dom
): boolean
Parameters
Name | Type |
---|---|
prevNode | OverflowNode |
dom | HTMLElement |
Returns
boolean
Overrides
ElementNode.updateDOM
Defined in
lexical-overflow/src/index.ts:61
clone
▸ Static
clone(node
): OverflowNode
Parameters
Name | Type |
---|---|
node | OverflowNode |
Returns
Overrides
ElementNode.clone
Defined in
lexical-overflow/src/index.ts:28
getType
▸ Static
getType(): string
Returns
string
Overrides
ElementNode.getType
Defined in
lexical-overflow/src/index.ts:24
importDOM
▸ Static
importDOM(): null
Returns
null
Defined in
lexical-overflow/src/index.ts:36
importJSON
▸ Static
importJSON(serializedNode
): OverflowNode
Parameters
Name | Type |
---|---|
serializedNode | SerializedOverflowNode |
Returns
Overrides
ElementNode.importJSON
Defined in
lexical-overflow/src/index.ts:32