Function SharedField

  • Creates an amendment (and decorator) of component member that shares a form field.

    Returns

    New field member amendment.

    Type Parameters

    • TField extends Field<TFieldValue, any, TField>

      Field type.

    • TFieldValue = FormUnit.ValueType<TField>

      Field value type.

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

      Amended component class type.

    • TAmended extends AeSharedField<TField, TFieldValue, TClass, TAmended> = AeSharedField<TField, TFieldValue, TClass>

      Amended field entity type.

    Parameters

    • Optional def: SharedFieldDef<TField, TFieldValue>

      Field definition.

    • Rest ...amendments: Amendment<TAmended>[]

      Amendments to apply.

    Returns SharedFieldAmendment<TField, TFieldValue, TClass, TAmended>

  • Creates an amendment (and decorator) of component member that shares a form field and adds it to the default form under amended member name.

    Returns

    Component property decorator.

    Type Parameters

    • TField extends Field<TFieldValue, any, TField>

      Field type.

    • TFieldValue = FormUnit.ValueType<TField>

      Field value type.

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

      Amended component class type.

    • TAmended extends AeSharedField<TField, TFieldValue, TClass, TAmended> = AeSharedField<TField, TFieldValue, TClass>

      Amended field entity type.

    Parameters

    • Rest ...amendments: Amendment<TAmended>[]

      Amendments to apply.

    Returns SharedFieldAmendment<TField, TFieldValue, TClass, TAmended>

Generated using TypeDoc