@haiix/tcomponent
    Preparing search index...

    Class AbstractComponentAbstract

    The base class for all components. Provides basic properties to manage the component hierarchy, attributes, and children.

    Hierarchy (View Summary)

    Index
    element: Element

    The root DOM Element of the component.

    The parent component instance, if any.

    • get signal(): AbortSignal

      Lazily initializes and returns the AbortSignal for this component. Automatically links to the parent's signal to form a cascade of teardowns.

      Returns AbortSignal

    • Destroys the component. Aborts the internal controller (unbinding events) and removes the element from the DOM.

      Returns void

    • Handles errors by delegating them to the parent component, or throws if there is no parent.

      Parameters

      • error: unknown

        The error to be handled.

      Returns void