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(config
): HTMLElement
Parameters
Name | Type |
---|---|
config | EditorConfig |
Returns
HTMLElement
Overrides
DecoratorNode.createDOM
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:150
decorate
▸ decorate(): Element
The returned value is added to the LexicalEditor._decorators
Returns
Element
Overrides
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:168
exportDOM
▸ exportDOM(): DOMExportOutput
Returns
Overrides
DecoratorNode.exportDOM
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:146
exportJSON
▸ exportJSON(): SerializedLexicalNode
Returns
Overrides
DecoratorNode.exportJSON
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:139
getTextContent
▸ getTextContent(): string
Returns
string
Overrides
DecoratorNode.getTextContent
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:156
isInline
▸ isInline(): false
Returns
false
Overrides
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:160
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:164
clone
▸ clone(node
): HorizontalRuleNode
Parameters
Name | Type |
---|---|
node | HorizontalRuleNode |
Returns
Overrides
DecoratorNode.clone
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:120
getType
▸ getType(): string
Returns
string
Overrides
DecoratorNode.getType
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:116
importDOM
▸ importDOM(): null
| DOMConversionMap
Returns
null
| DOMConversionMap
Overrides
DecoratorNode.importDOM
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:130
importJSON
▸ importJSON(serializedNode
): HorizontalRuleNode
Parameters
Name | Type |
---|---|
serializedNode | SerializedLexicalNode |
Returns
Overrides
DecoratorNode.importJSON
Defined in
packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:124