@haiix/tcomponent
    Preparing search index...

    Class BuildContext

    Context object used during the recursive build process.

    Index

    Constructors

    • Builds a DOM tree from a parsed template (TNode) and resolves ID references.

      Parameters

      • component: AbstractComponent

        The component instance that owns this template.

      • uses: Record<string, typeof AbstractComponent>

        A map of custom component classes to be used within the template.

      • OptionalparentSignal: AbortSignal

        An AbortSignal to clean up event listeners.

      Returns BuildContext

    Properties

    The component instance that owns the template being built.

    controller: AbortController

    Controller to manage the component's own teardown.

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

    Map of original IDs to newly generated unique elements.

    idReferenceMap: { attrName: string; element: Element; refId: string }[] = []

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

    signal: AbortSignal

    Signal to pass to event listeners (linked to the component's teardown).

    uses: Record<string, typeof AbstractComponent>

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

    Methods

    • 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