Module: lib/formiojsWrapper
Functions
CreateFormio
▸ CreateFormio(url, options?): Promise<Formio>
Create a new Formio instance. Prefer this function over the Formio constructor.
Parameters
| Name | Type | Description |
|---|---|---|
url | string | URL of the formio instance. |
options? | Object | Options for the formio instance. |
Returns
Promise<Formio>
Defined in
src/web-app/src/lib/formiojsWrapper.tsx:11
FormioComponentLoader
▸ FormioComponentLoader<T>(loader, loading?): ComponentType<T>
Loader which takes care of setting the base URL of the Formio library automatically.
Type parameters
| Name |
|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
loader | () => LoaderComponent<T> | Loader of the formio component. |
loading? | Element | Element to display while the component is loading. |
Returns
ComponentType<T>
The dynamically loaded component.