Class: Form

Form(…formItems)

Form element.

Constructor

new Form(…formItems)

Parameters:
Name Type Attributes Description
formItems FormItem <repeatable>
Source:

Classes

Form

Members

items

Gets items.
Source:

Methods

disableCancel() → {Form}

Disables cancel button.
Source:
Returns:
this
Type
Form

disableItems() → {Form}

Disables items.
Source:
Returns:
this
Type
Form

disableSubmit() → {Form}

Disables form submission.
Source:
Returns:
this
Type
Form

enableCancel() → {Form}

Enables cancel button.
Source:
Returns:
this
Type
Form

enableItems() → {Form}

Enables items.
Source:
Returns:
this
Type
Form

enableSubmit() → {Form}

Enables form submission.
Source:
Returns:
this
Type
Form

onCancel(callback, buttonContent, buttonLoading, …buttonClasses) → {Form}

Binds a callback for the cancel event.
Parameters:
Name Type Attributes Description
callback function
buttonContent string cancel button inner text
buttonLoading string | null the loading message displayed in button after click
buttonClasses string <repeatable>
cancel button classes
Source:
Returns:
this
Type
Form

onSubmit(callback, buttonContent, buttonLoading, …buttonClasses) → {Form}

Binds a callback for the submit event.
Parameters:
Name Type Attributes Description
callback function
buttonContent string submit button inner text
buttonLoading string | null the loading message displayed in button after click
buttonClasses string <repeatable>
submit button classes
Source:
Returns:
this
Type
Form