• Creates component member amendment (and decorator) that declares a property to add to component's element.

    The value of declared element's property will be read from and written to decorated member.

    By default does not update component state if property value didn't change.

    Returns

    New component member decorator.

    Type Parameters

    • TValue

      Amended member value type

    • TClass extends ComponentClass<any, TClass> = Class<any>

      Amended component class type.

    • TUpdate = TValue

      Amended member update type accepted by its setter.

    • TAmended extends AeComponentMember<TValue, TClass, TUpdate, TAmended> = AeComponentMember<TValue, TClass, TUpdate>

      Amended component member entity type.

    Parameters

    • def: DomPropertyDef<InstanceType<TClass>> = {}

      Custom element property definition.

    Returns ComponentMemberAmendment<TValue, TClass, TUpdate, TAmended>

Generated using TypeDoc