Function OnSubmit

  • Creates an amendment (and decorator) of component method to call on input form submit.

    Returns

    New component property decorator.

    Type Parameters

    • TModel = any

      Submitted model type.

    • TElt extends HTMLElement<TElt> = HTMLElement

      A type of HTML form element.

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

      Amended component class type.

    • TAmended extends AeComponentMember<Method<TModel, TElt, TClass>, TClass, Method<TModel, TElt, TClass>, TAmended> = AeComponentMember<Method<TModel, TElt, TClass>, TClass, Method<TModel, TElt, TClass>>

      Amended component member entity type.

    Parameters

    • def: OnSubmitDef<TModel, TElt> = {}

      Submit handler definition.

    Returns ComponentMemberAmendment<Method<TModel, TElt, TClass>, TClass, Method<TModel, TElt, TClass>, TAmended>

Generated using TypeDoc