Constructor
new Form(…formItems)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
formItems |
FormItem |
<repeatable> |
Classes
Members
items
Gets items.
Methods
disableCancel() → {Form}
Disables cancel button.
Returns:
this
- Type
- Form
disableItems() → {Form}
Disables items.
Returns:
this
- Type
- Form
disableSubmit() → {Form}
Disables form submission.
Returns:
this
- Type
- Form
enableCancel() → {Form}
Enables cancel button.
Returns:
this
- Type
- Form
enableItems() → {Form}
Enables items.
Returns:
this
- Type
- Form
enableSubmit() → {Form}
Enables form submission.
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 |
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 |
Returns:
this
- Type
- Form