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(): 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

DecoratorNode.decorate

Defined in

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


exportDOM

exportDOM(): DOMExportOutput

Returns

DOMExportOutput

Overrides

DecoratorNode.exportDOM

Defined in

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


exportJSON

exportJSON(): SerializedLexicalNode

Returns

SerializedLexicalNode

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

DecoratorNode.isInline

Defined in

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


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:151


clone

clone(node): HorizontalRuleNode

Parameters

NameType
nodeHorizontalRuleNode

Returns

HorizontalRuleNode

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

NameType
serializedNodeSerializedLexicalNode

Returns

HorizontalRuleNode

Overrides

DecoratorNode.importJSON

Defined in

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