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

    Function Attribute

    • Decorator factory: marks a setter as an attribute-binding.

      Parameters

      • OptionalattrName: string

        HTML attribute name. If omitted, defaults to the setter property name (e.g. set title → 'title').

      • converter: Converter<any> = defaultConverter

        Converter for attribute string ↔ property value. Defaults to defaultConverter (auto-detects type).

        Example:

        @Attribute('dialog-title')
        set title(value: string) { this.ajsData.title = value; }

        @Attribute('l10n', expressionConverter)
        set l10n(value: ((k: string) => string) | null) { ... }

      Returns MethodDecorator