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

    Interface Converter<T>

    Converter interface for attribute-to-property round-trip conversion.

    interface Converter<T> {
        fromAttribute(value: string | null, el?: HTMLElement): T;
        toAttribute(value: T): string | null;
    }

    Type Parameters

    • T
    Index
    • Converts attribute string value (or null) to property value

      Parameters

      • value: string | null
      • Optionalel: HTMLElement

      Returns T

    • Converts property value to attribute string (or null)

      Parameters

      • value: T

      Returns string | null