insertAfter<T>
Inserts a node into this node right after a reference child, or as the first child when there is no reference child.
Import:
import 'obsidian-test-mocks/setup';Signature:
function insertAfter(this: Node, node: T, child: Node | null): TParameters:
| Parameter | Type | Description |
|---|---|---|
this |
Node | |
node |
T | The node to insert. |
child |
Node | null | The child of this node to insert after, or null to insert node first. |
Returns: T — The inserted node.