Skip to main content

Class: ElementDOMSlot

lexical.ElementDOMSlot

Constructors

constructor

new ElementDOMSlot(element, before?, after?): ElementDOMSlot

Parameters

NameType
elementHTMLElement
before?null | Node
after?null | Node

Returns

ElementDOMSlot

Defined in

packages/lexical/src/nodes/LexicalElementNode.ts:76

Properties

after

after: null | Node

Defined in

packages/lexical/src/nodes/LexicalElementNode.ts:75


before

before: null | Node

Defined in

packages/lexical/src/nodes/LexicalElementNode.ts:74


element

element: HTMLElement

Defined in

packages/lexical/src/nodes/LexicalElementNode.ts:73

Methods

getFirstChild

getFirstChild(): null | ChildNode

Returns

null | ChildNode

Defined in

packages/lexical/src/nodes/LexicalElementNode.ts:120


insertChild

insertChild(dom): this

Parameters

NameType
domNode

Returns

this

Defined in

packages/lexical/src/nodes/LexicalElementNode.ts:94


removeChild

removeChild(dom): this

Parameters

NameType
domNode

Returns

this

Defined in

packages/lexical/src/nodes/LexicalElementNode.ts:104


replaceChild

replaceChild(dom, prevDom): this

Parameters

NameType
domNode
prevDomNode

Returns

this

Defined in

packages/lexical/src/nodes/LexicalElementNode.ts:112


withAfter

withAfter(after): ElementDOMSlot

Parameters

NameType
afterundefined | null | Node

Returns

ElementDOMSlot

Defined in

packages/lexical/src/nodes/LexicalElementNode.ts:88


withBefore

withBefore(before): ElementDOMSlot

Parameters

NameType
beforeundefined | null | Node

Returns

ElementDOMSlot

Defined in

packages/lexical/src/nodes/LexicalElementNode.ts:85


withElement

withElement(element): ElementDOMSlot

Parameters

NameType
elementHTMLElement

Returns

ElementDOMSlot

Defined in

packages/lexical/src/nodes/LexicalElementNode.ts:91