Components for AaSH (ARIA augmented Semantic HTML)
    Preparing search index...

    Function AashComponent

    • Class decorator: turns an HTMLElement subclass into an AashComponent with automatic attribute observation and initialization.

      Captures all @Attribute decorated setters from the class prototype, generates static get observedAttributes() and attributeChangedCallback(name, oldVal, newVal).

      On connectedCallback, sets the attributes x-data (if missing) and x-aash-comoponent after the component's own connectedCallback body runs (if provided).

      Assumes the decorated class extends HTMLElement directly (no intermediate

      Returns ClassDecorator

      decorated classes).

      Example:

      @AashComponent
      class MyElement extends HTMLElement {
      @Attribute('my-label')
      set label(v: string) { this.ajsData.label = v; }
      }