Skip to content

AlloyNode

after(nodes: Insertable[]) => voidInsert nodes immediately after this in the parent’s child list.
append(nodes: Insertable[]) => voidAppend nodes (or strings) to the end of children.
before(nodes: Insertable[]) => voidInsert nodes immediately before this in the parent’s child list.
cloneNode() => AlloyNodeDeep-clone this node and its subtree. The clone has no parent and its children are themselves clones. Used when a node value would otherwise be inserted into two parents (e.g. a shared joiner element produced by mapJoin) — Alloy intrinsic nodes are stateless so a fresh tree is semantically equivalent.
protected cloneShallow() => AlloyNode
firstChildAlloyNode | null
isEmptybooleanEmpty-state propagation. false for Text/Element with content, true for empty regions. Mutated by reactive bindings; read by joiner/ender logic. Direct field — no Vue effect.
lastChildAlloyNode | null
moveBefore(node: AlloyNode, ref: AlloyNode | null) => voidAtomic move: relocate node to be a child of this immediately before ref (or at the end if ref is null), without disconnecting any state on the moved subtree. Used by <For> reorder paths so keyed-item bindings stay live. Mirrors the 2024 DOM Element.moveBefore(node, child) proposal.
nextSiblingAlloyNode | null
nodeTypeNodeType
parentNodeAlloyNode | null
prepend(nodes: Insertable[]) => voidPrepend nodes (or strings) to the beginning of children.
previousSiblingAlloyNode | null
remove() => voidRemove this from its parent.
replaceWith(nodes: Insertable[]) => voidReplace this with the given nodes in the parent’s child list.