Class: OverflowNode
lexical-overflow/src.OverflowNode
Hierarchy
↳
OverflowNode
Constructors
constructor
• new OverflowNode(key?
)
Parameters
Name | Type |
---|---|
key? | string |
Overrides
Defined in
lexical-overflow/src/index.ts:46
Methods
createDOM
▸ createDOM(config
): HTMLElement
Parameters
Name | Type |
---|---|
config | EditorConfig |
Returns
HTMLElement
Overrides
ElementNode.createDOM
Defined in
lexical-overflow/src/index.ts:58
excludeFromCopy
▸ excludeFromCopy(): boolean
Returns
boolean
Overrides
Defined in
lexical-overflow/src/index.ts:76
exportJSON
▸ exportJSON(): SerializedElementNode
Returns
Overrides
Defined in
lexical-overflow/src/index.ts:51
insertNewAfter
▸ insertNewAfter(selection
): null
| LexicalNode
Parameters
Name | Type |
---|---|
selection | RangeSelection |
Returns
null
| LexicalNode
Overrides
Defined in
lexical-overflow/src/index.ts:71
updateDOM
▸ updateDOM(prevNode
, dom
): boolean
Parameters
Name | Type |
---|---|
prevNode | OverflowNode |
dom | HTMLElement |
Returns
boolean
Overrides
ElementNode.updateDOM
Defined in
lexical-overflow/src/index.ts:67
clone
▸ Static
clone(node
): OverflowNode
Parameters
Name | Type |
---|---|
node | OverflowNode |
Returns
Overrides
ElementNode.clone
Defined in
lexical-overflow/src/index.ts:34
getType
▸ Static
getType(): string
Returns
string
Overrides
ElementNode.getType
Defined in
lexical-overflow/src/index.ts:30
importDOM
▸ Static
importDOM(): null
Returns
null
Defined in
lexical-overflow/src/index.ts:42
importJSON
▸ Static
importJSON(serializedNode
): OverflowNode
Parameters
Name | Type |
---|---|
serializedNode | SerializedOverflowNode |
Returns
Overrides
ElementNode.importJSON
Defined in
lexical-overflow/src/index.ts:38