Class: OverflowNode
@lexical/overflow.OverflowNode
Hierarchy
-
↳
OverflowNode
Constructors
constructor
• new OverflowNode(key?
): OverflowNode
Parameters
Name | Type |
---|---|
key? | string |
Returns
Overrides
Defined in
packages/lexical-overflow/src/index.ts:39
Methods
createDOM
▸ createDOM(config
): HTMLElement
Parameters
Name | Type |
---|---|
config | EditorConfig |
Returns
HTMLElement
Overrides
ElementNode.createDOM
Defined in
packages/lexical-overflow/src/index.ts:51
excludeFromCopy
▸ excludeFromCopy(): boolean
Returns
boolean
Overrides
Defined in
packages/lexical-overflow/src/index.ts:72
exportJSON
▸ exportJSON(): SerializedElementNode
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
Overrides
Defined in
packages/lexical-overflow/src/index.ts:44
insertNewAfter
▸ insertNewAfter(selection
, restoreSelection?
): null
| LexicalNode
Parameters
Name | Type | Default value |
---|---|---|
selection | RangeSelection | undefined |
restoreSelection | boolean | true |
Returns
null
| LexicalNode
Overrides
Defined in
packages/lexical-overflow/src/index.ts:64
updateDOM
▸ updateDOM(prevNode
, dom
): boolean
Parameters
Name | Type |
---|---|
prevNode | OverflowNode |
dom | HTMLElement |
Returns
boolean
Overrides
ElementNode.updateDOM
Defined in
packages/lexical-overflow/src/index.ts:60
clone
▸ clone(node
): OverflowNode
Parameters
Name | Type |
---|---|
node | OverflowNode |
Returns
Overrides
ElementNode.clone
Defined in
packages/lexical-overflow/src/index.ts:27
getType
▸ getType(): string
Returns
string
Overrides
ElementNode.getType
Defined in
packages/lexical-overflow/src/index.ts:23
importDOM
▸ importDOM(): null
Returns
null
Overrides
ElementNode.importDOM
Defined in
packages/lexical-overflow/src/index.ts:35
importJSON
▸ importJSON(serializedNode
): OverflowNode
Parameters
Name | Type |
---|---|
serializedNode | SerializedOverflowNode |
Returns
Overrides
ElementNode.importJSON