Class: HorizontalRuleNode
@lexical/react/LexicalHorizontalRuleNode.HorizontalRuleNode
Hierarchy
-
DecoratorNode
<JSX.Element
>↳
HorizontalRuleNode
Constructors
constructor
• new HorizontalRuleNode(key?
): HorizontalRuleNode
Parameters
Name | Type |
---|---|
key? | string |
Returns
Inherited from
Defined in
packages/lexical/src/nodes/LexicalDecoratorNode.ts:20
Properties
constructor
• constructor: KlassConstructor
<typeof DecoratorNode
>
Inherited from
DecoratorNode.constructor
Defined in
packages/lexical/src/nodes/LexicalDecoratorNode.ts:19
Methods
createDOM
▸ createDOM(): HTMLElement
Returns
HTMLElement
Overrides
DecoratorNode.createDOM
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:139
decorate
▸ decorate(): Element
The returned value is added to the LexicalEditor._decorators
Returns
Element
Overrides
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:155
exportDOM
▸ exportDOM(): DOMExportOutput
Returns
Overrides
DecoratorNode.exportDOM
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:135
exportJSON
▸ exportJSON(): SerializedLexicalNode
Returns
Overrides
DecoratorNode.exportJSON
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:128
getTextContent
▸ getTextContent(): string
Returns
string
Overrides
DecoratorNode.getTextContent
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:143
isInline
▸ isInline(): false
Returns
false
Overrides
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:147
isIsolated
▸ isIsolated(): boolean
Returns
boolean
Inherited from
Defined in
packages/lexical/src/nodes/LexicalDecoratorNode.ts:31
isKeyboardSelectable
▸ isKeyboardSelectable(): boolean
Returns
boolean
Inherited from
DecoratorNode.isKeyboardSelectable
Defined in
packages/lexical/src/nodes/LexicalDecoratorNode.ts:39
updateDOM
▸ updateDOM(): boolean
Returns
boolean
Overrides
DecoratorNode.updateDOM
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:151
clone
▸ clone(node
): HorizontalRuleNode
Parameters
Name | Type |
---|---|
node | HorizontalRuleNode |
Returns
Overrides
DecoratorNode.clone
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:109
getType
▸ getType(): string
Returns
string
Overrides
DecoratorNode.getType
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:105
importDOM
▸ importDOM(): null
| DOMConversionMap
Returns
null
| DOMConversionMap
Overrides
DecoratorNode.importDOM
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:119
importJSON
▸ importJSON(serializedNode
): HorizontalRuleNode
Parameters
Name | Type |
---|---|
serializedNode | SerializedLexicalNode |
Returns
Overrides
DecoratorNode.importJSON
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:113