Class: ElementDOMSlot
lexical.ElementDOMSlot
Constructors
constructor
• new ElementDOMSlot(element
, before?
, after?
): ElementDOMSlot
Parameters
Name | Type |
---|---|
element | HTMLElement |
before? | null | Node |
after? | null | Node |
Returns
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
Name | Type |
---|---|
dom | Node |
Returns
this
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:94
removeChild
▸ removeChild(dom
): this
Parameters
Name | Type |
---|---|
dom | Node |
Returns
this
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:104
replaceChild
▸ replaceChild(dom
, prevDom
): this
Parameters
Name | Type |
---|---|
dom | Node |
prevDom | Node |
Returns
this
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:112
withAfter
▸ withAfter(after
): ElementDOMSlot
Parameters
Name | Type |
---|---|
after | undefined | null | Node |
Returns
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:88
withBefore
▸ withBefore(before
): ElementDOMSlot
Parameters
Name | Type |
---|---|
before | undefined | null | Node |
Returns
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:85
withElement
▸ withElement(element
): ElementDOMSlot
Parameters
Name | Type |
---|---|
element | HTMLElement |