Skip to main content

Class: HorizontalRuleNode

@lexical/react/LexicalHorizontalRuleNode.HorizontalRuleNode

Hierarchy

Constructors

constructor

new HorizontalRuleNode(key?): HorizontalRuleNode

Parameters

NameType
key?string

Returns

HorizontalRuleNode

Inherited from

DecoratorNode.constructor

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

NameType
configEditorConfig

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

DecoratorNode.decorate

Defined in

packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:168


exportDOM

exportDOM(): DOMExportOutput

Returns

DOMExportOutput

Overrides

DecoratorNode.exportDOM

Defined in

packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:146


exportJSON

exportJSON(): SerializedLexicalNode

Returns

SerializedLexicalNode

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

DecoratorNode.isInline

Defined in

packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:160


isIsolated

isIsolated(): boolean

Returns

boolean

Inherited from

DecoratorNode.isIsolated

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

NameType
nodeHorizontalRuleNode

Returns

HorizontalRuleNode

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

NameType
serializedNodeSerializedLexicalNode

Returns

HorizontalRuleNode

Overrides

DecoratorNode.importJSON

Defined in

packages/lexical-react/src/LexicalHorizontalRuleNode.tsx:124