@haiix/tcomponent
    Preparing search index...

    Class BuildContext

    Context object used during the recursive build process.

    Index

    The component instance that owns the template being built.

    idMap: Record<string, Element | AbstractComponent> = {}

    Map of original IDs to newly generated unique elements.

    idReferenceMap: IDReferenceEntry[] = []

    List of elements that reference other elements by ID, needing resolution.

    uses: Record<string, typeof AbstractComponent>

    A dictionary of custom components to be used within the template.

    • Builds child nodes and appends them to the specified element.

      Parameters

      • element: Element

        The parent element to append child nodes to.

      • children: (string | TNode)[]

        The child nodes or text content to append.

      • OptionalchildNs: string | null

        The namespace URI used when creating child elements.

      Returns void

    • Recursively builds a DOM tree from a TNode and stores the states in idMap and idReferenceMap.

      Parameters

      • tNode: TNode

        The current TNode to build.

      • Optionalns: string | null

        Namespace URI used when creating an element.

      Returns Element

      The constructed DOM Element.

    • Resolve stored ID references to their actual UUIDs

      Returns void