Wizard
Extends:
Constructor Summary
| Public Constructor | ||
| public |
constructor(element: *, options: Object) Constructor for wizard based forms |
|
Member Summary
| Public Members | ||
| public get |
buttons: * |
|
| public |
component: * |
|
| public |
components: *[] |
|
| public |
|
|
| public get |
currentPage: * |
|
| public |
currentPanel: * |
|
| public get |
data: * |
|
| public set |
|
|
| public |
disabled: * |
|
| public |
element: * |
|
| public get |
errors: * |
|
| public get |
form: * |
|
| public set |
|
|
| public |
|
|
| public |
originalComponents: *[] |
|
| public |
|
|
| public |
pages: *[] |
|
| public |
prefixComps: *[] |
|
| public get |
renderContext: {"wizardKey": *, "isBreadcrumbClickable": *, "panels": *, "buttons": *, "currentPage": *} |
|
| public get |
schema: * |
|
| public |
suffixComps: *[] |
|
| public |
wizard: * |
|
| public get |
|
|
| Private Members | ||
| private |
_seenPages: number[] |
|
Method Summary
| Public Methods | ||
| public |
|
|
| public |
attach(element: *): * |
|
| public |
|
|
| public |
|
|
| public |
beforePage(next: *): * |
|
| public |
beforeSubmit(): * |
|
| public |
cancel(noconfirm: *): * |
|
| public |
checkValidity(data: *, dirty: *, row: *, currentPageOnly: *): * |
|
| public |
|
|
| public |
|
|
| public |
establishPages(data: *): * |
|
| public |
focusOnComponent(key: *): * |
|
| public |
getComponents(): * |
|
| public |
getNextPage(): * |
|
| public |
getPageIndexByKey(key: *): * |
|
| public |
getPages(args: {}): * |
|
| public |
getPreviousPage(): * |
|
| public |
|
|
| public |
init(): * |
|
| public |
|
|
| public |
isClickable(page: *, index: *): * |
|
| public |
isLastPage(): * |
|
| public |
nextPage(): * |
|
| public |
onChange(flags: *, changed: *, modified: *, changes: *) |
|
| public |
pageFieldLogic(page: *) |
|
| public |
pageId(page: *): * |
|
| public |
prepareHeaderSettings(ctx: *): * |
|
| public |
prepareNavigationSettings(ctx: *): * |
|
| public |
prevPage(): * |
|
| public |
|
|
| public |
|
|
| public |
render(): * |
|
| public |
|
|
| public |
|
|
| public |
setForm(form: *, flags: *): * |
|
| public |
setPage(num: *): * |
|
| public |
setValue(submission: *, flags: {}): * |
|
Inherited Summary
| From class Webform | ||
| public get |
|
|
| public get |
Gets the form object. |
|
| public set |
Sets the form value. |
|
| public set |
Sets the language for this form. |
|
| public get |
Returns if this form is loading. |
|
| public set |
Set the loading state for this form, and also show the loader spinner. |
|
| public get |
nosubmit: * |
|
| public set |
|
|
| public get |
Called when both the form and submission have been loaded. |
|
| public get |
schema: * |
|
| public get |
Get the embed source of the form. |
|
| public set |
Set the Form source, which is typically the Form.io embed URL. |
|
| public get |
submission: Object: * Returns the submission object that was set within this form. |
|
| public set |
submission(submission: Object) Sets the submission of a form. |
|
| public get |
Get the embed source of the form. |
|
| public set |
Set the form source but don't initialize the form and submission from the url. |
|
| public |
alert: HTMLElement The alert HTML element |
|
| public |
component: * |
|
| public |
components: *[] |
|
| public |
currentForm: * |
|
| public |
customErrors: *[] |
|
| public |
|
|
| public |
editing: * |
|
| public |
element: * |
|
| public |
|
|
| public |
Promise that executes when the form is ready and rendered. |
|
| public |
Called when this form could not load and is rejected. |
|
| public |
Called when the formReady state of this form has been resolved. |
|
| public |
The Formio instance for this form. |
|
| public |
|
|
| public |
loader: HTMLElement The loader HTML element. |
|
| public |
|
|
| public |
Promise that is triggered when the submission is done loading. |
|
| public |
options: * |
|
| public |
|
|
| public |
root: * |
|
| public |
|
|
| public |
shortcuts: *[] |
|
| public |
Promise that executes when the submission is ready and rendered. |
|
| public |
Called when this form could not load and is rejected. |
|
| public |
Called when the formReady state of this form has been resolved. |
|
| public |
Determines if this submission is explicitly set. |
|
| public |
Determines if the form has tried to be submitted, error or not. |
|
| public |
Determines if the form is being submitted at the moment. |
|
| public |
|
|
| public |
The type of this element. |
|
| private |
_form: {} |
|
| private |
|
|
| private |
_nosubmit: * |
|
| private |
|
|
| private |
_submission: * |
|
| public |
addLanguage(code: *, lang: *, active: *): * Add a language for translations |
|
| public |
addShortcut(element: *, shortcut: *) |
|
| public |
attach(element: *): * |
|
| public |
build(element: *): * |
|
| public |
Cancels the submission. |
|
| public |
checkData(data: *, flags: {}): * |
|
| public |
deleteSubmission(): * Send a delete request to the server. |
|
| public |
|
|
| public |
|
|
| public |
executeSubmit(options: *): * |
|
| public |
focusOnComponent(key: string): * Focus on selected component. |
|
| public |
getClassName(): * |
|
| public |
getValue(): * |
|
| public |
hasRequiredFields(): * |
|
| public |
init(): * Build the form. |
|
| public |
keyboardCatchableElement(element: *): boolean |
|
| public |
loadSubmission(): * Loads the submission if applicable. |
|
| public |
localize(): * Perform the localization initialization. |
|
| public |
mergeData(_this: *, _that: *) |
|
| public |
onChange(changed: *, flags: *) Trigger the change event for this form. |
|
| public |
onSubmissionError(error: Object): * Called when an error occurs during the submission. |
|
| public |
Called when the submission has completed, or if the submission needs to be sent to an external library. |
|
| public |
redraw(): * |
|
| public |
removeShortcut(element: *, shortcut: *) |
|
| public |
render(): * |
|
| public |
|
|
| public |
restoreDraft(-: userId) Restores a draft submission based on the user who is authenticated. |
|
| public |
Saves a submission draft. |
|
| public |
Sets a new alert to display in the error dialog of the form. |
|
| public |
Sets the JSON schema for the form to be rendered. |
|
| public |
setMetadata(submission: *) |
|
| public |
setSrc(value: *, options: *): * Set the src of the form renderer. |
|
| public |
setSubmission(submission: *, flags: *): Promise<TResult> Sets a submission and returns the promise when it is ready. |
|
| public |
Sets the url of the form renderer. |
|
| public |
setValue(submission: *, flags: {}): * |
|
| public |
showErrors(error: Object): * Show the errors of this form within the alert dialog. |
|
| public |
Submits the form. |
|
| public |
submitForm(options: {}): * |
|
| public |
submitUrl(URL: *, headers: *): * |
|
| public |
|
|
Public Constructors
public constructor(element: *, options: Object) source
Constructor for wizard based forms
Override:
Webform#constructorParams:
| Name | Type | Attribute | Description |
| element | * | Dom element to place this wizard. |
|
| options | Object | Options object, supported options are:
|
Public Members
public get buttons: * source
public get currentPage: * source
public currentPanel: * source
public get data: * source
public set data source
public disabled: * source
public get errors: * source
public originalComponent: * source
public originalComponents: *[] source
public pages: *[] source
public prefixComps: *[] source
public get renderContext: {"wizardKey": *, "isBreadcrumbClickable": *, "panels": *, "buttons": *, "currentPage": *} source
public suffixComps: *[] source
public wizard: * source
Private Members
Public Methods
public addComponents() source
public attach(element: *): * source
Override:
Webform#attachParams:
| Name | Type | Attribute | Description |
| element | * |
Return:
| * |
public attachHeader() source
public attachNav() source
public cancel(noconfirm: *): * source
Cancels the submission.
Override:
Webform#cancelParams:
| Name | Type | Attribute | Description |
| noconfirm | * |
Return:
| * |
public checkValidity(data: *, dirty: *, row: *, currentPageOnly: *): * source
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| dirty | * | ||
| row | * | ||
| currentPageOnly | * |
Return:
| * |
public detachHeader() source
public detachNav() source
public establishPages(data: *): * source
Params:
| Name | Type | Attribute | Description |
| data | * |
|
Return:
| * |
public focusOnComponent(key: *): * source
Focus on selected component.
Override:
Webform#focusOnComponentParams:
| Name | Type | Attribute | Description |
| key | * |
Return:
| * |
public getPages(args: {}): * source
Params:
| Name | Type | Attribute | Description |
| args | {} |
|
Return:
| * |
public hasButton(name: *, nextPage: *): boolean source
Params:
| Name | Type | Attribute | Description |
| name | * | ||
| nextPage | * |
|
public isClickable(page: *, index: *): * source
Params:
| Name | Type | Attribute | Description |
| page | * | ||
| index | * |
Return:
| * |
public onChange(flags: *, changed: *, modified: *, changes: *) source
Trigger the change event for this form.
Override:
Webform#onChangeParams:
| Name | Type | Attribute | Description |
| flags | * | ||
| changed | * | ||
| modified | * | ||
| changes | * |
public pageFieldLogic(page: *) source
Params:
| Name | Type | Attribute | Description |
| page | * |
public prepareNavigationSettings(ctx: *): * source
Params:
| Name | Type | Attribute | Description |
| ctx | * |
Return:
| * |
public redrawHeader() source
public redrawNavigation() source
public setComponentSchema() source
public setForm(form: *, flags: *): * source
Sets the JSON schema for the form to be rendered.
Override:
Webform#setFormParams:
| Name | Type | Attribute | Description |
| form | * | ||
| flags | * |
Return:
| * |
public setValue(submission: *, flags: {}): * source
Override:
Webform#setValueParams:
| Name | Type | Attribute | Description |
| submission | * | ||
| flags | {} |
|
Return:
| * |
