• Creates an amendment (and decorator) of component property that accesses custom element's attribute.

    The amended property accesses corresponding attribute on read, and updates it on setting. null value corresponds to absent attribute. Setting to null or undefined removes corresponding attribute.

    Returns

    New component property amendment.

    Type Parameters

    • TClass extends ComponentClass<any, TClass>

      Amended component class type.

    • TAmended extends AeComponentMember<undefined | null | string, TClass, undefined | null | string, TAmended> = AeComponentMember<undefined | null | string, TClass, undefined | null | string>

      Amended component member entity type.

    Parameters

    • Optional def: string | AttributeDef<InstanceType<TClass>>

      Attribute definition or just an attribute name (either camelCase or dash-style).

    Returns ComponentMemberAmendment<string | null | undefined, TClass, string | null | undefined, TAmended>

Generated using TypeDoc