Function SharedForm

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

    Returns

    New form member amendment.

    Type Parameters

    • TForm extends Form<TModel, TElt, any, TForm>

      Form type.

    • TModel = FormUnit.ValueType<TForm>

      Form model type.

    • TElt extends HTMLElement<TElt> = ElementType<TForm>

      A type of HTML form element.

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

      Amended component class type.

    • TAmended extends AeSharedForm<TForm, TModel, TElt, TClass, TAmended> = AeSharedForm<TForm, TModel, TElt, TClass>

      Amended form entity type.

    Parameters

    • Optional def: SharedFormDef<TForm, TModel, TElt>

      Form definition.

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

      Amendments to apply.

    Returns SharedFormAmendment<TForm, TModel, TElt, TClass>

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

    Returns

    New form member amendment.

    Type Parameters

    • TForm extends Form<TModel, TElt, any, TForm>

      Form type.

    • TModel = FormUnit.ValueType<TForm>

      Form model type.

    • TElt extends HTMLElement<TElt> = ElementType<TForm>

      A type of HTML form element.

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

      Amended component class type.

    • TAmended extends AeSharedForm<TForm, TModel, TElt, TClass, TAmended> = AeSharedForm<TForm, TModel, TElt, TClass>

      Amended form entity type.

    Parameters

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

      Amendments to apply.

    Returns SharedFormAmendment<TForm, TModel, TElt, TClass>

Generated using TypeDoc