WebformBuilder
Extends:
Direct Subclass:
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
builder: * |
|
| public |
|
|
| public |
|
|
| public get |
container: * |
|
| public get |
defaultGroups: {"basic": *, "advanced": *, "layout": *, "data": *, "premium": *} |
|
| public |
dialog: * |
|
| public |
|
|
| public |
dragula: * |
|
| public |
editForm: * |
|
| public |
element: * |
|
| public |
fieldsList: {"title": string, "key": string, "weight": *, "subgroups": *, "default": boolean, "components": *, "componentOrder": *} |
|
| public get |
form: * |
|
| public set |
|
|
| public |
groupOrder: *[] |
|
| public |
groups: {} |
|
| public |
preview: * |
|
| public get |
Called when everything is ready. |
|
| public |
repeatablePaths: *[] |
|
| public get |
schema: * |
|
| public |
schemas: {} |
|
| public |
|
|
| public |
|
|
| public |
webform: * |
|
Method Summary
| Public Methods | ||
| public |
addBuilderComponentInfo(component: *): * |
|
| public |
addBuilderGroup(name: *, group: *) |
|
| public |
addExistingResourceFields(resources: *) |
|
| public |
|
|
| public |
attach(element: *): * |
|
| public |
copyComponent(component: Component): * Creates copy of component schema and stores it under sessionStorage. |
|
| public |
createForm(options: *): * |
|
| public |
destroy(deleteFromGlobal: *) |
|
| public |
detach() |
|
| public |
editComponent(component: *, parent: *, isNew: *, isJsonEdit: *, original: *) |
|
| public |
findNamespaceRoot(component: *): * When a component sets its api key, we need to check if it is unique within its namespace. |
|
| public |
findRepeatablePaths(): * |
|
| public |
getComponentInfo(key: *, group: *): * |
|
| public |
getComponentsPath(component: *, parent: *): * |
|
| public |
getParentElement(element: *): * |
|
| public |
|
|
| public |
init(): * |
|
| public |
initDragula(): * |
|
| public |
onDrop(element: *, target: *, source: *, sibling: *): * |
|
| public |
pasteComponent(component: Component): * Paste copied component after the current component. |
|
| public |
populateRecaptchaSettings(form: *) |
|
| public |
recurseNamespace(component: *): * |
|
| public |
redraw(): * |
|
| public |
removeComponent(component: *, parent: *, original: *): * |
|
| public |
render(): * |
|
| public |
saveComponent(parent: *, component: *): boolean Called when a new component is saved. |
|
| public |
searchFields(searchString: *) |
|
| public |
setForm(form: *): * |
|
| public |
updateBuilderGroup(name: *, group: *) |
|
| public |
updateComponent(component: *, changed: *) |
|
| public |
updateDragAndDrop(): * |
|
Public Constructors
public constructor() source
Public Members
public builder: * source
public componentEdit: * source
public get container: * source
public get defaultGroups: {"basic": *, "advanced": *, "layout": *, "data": *, "premium": *} source
public dialog: * source
public dragula: * source
public editForm: * source
public element: * source
public fieldsList: {"title": string, "key": string, "weight": *, "subgroups": *, "default": boolean, "components": *, "componentOrder": *} source
public get form: * source
public set form source
public groupOrder: *[] source
public groups: {} source
public preview: * source
public repeatablePaths: *[] source
public get schema: * source
public schemas: {} source
public sideBarScroll: * source
public sideBarScrollOffset: * source
public webform: * source
Public Methods
public addBuilderComponentInfo(component: *): * source
Params:
| Name | Type | Attribute | Description |
| component | * |
Return:
| * |
public addBuilderGroup(name: *, group: *) source
Params:
| Name | Type | Attribute | Description |
| name | * | ||
| group | * |
public addExistingResourceFields(resources: *) source
Params:
| Name | Type | Attribute | Description |
| resources | * |
public copyComponent(component: Component): * source
Creates copy of component schema and stores it under sessionStorage.
Params:
| Name | Type | Attribute | Description |
| component | Component |
Return:
| * |
public destroy(deleteFromGlobal: *) source
Params:
| Name | Type | Attribute | Description |
| deleteFromGlobal | * |
public detach() source
public editComponent(component: *, parent: *, isNew: *, isJsonEdit: *, original: *) source
Params:
| Name | Type | Attribute | Description |
| component | * | ||
| parent | * | ||
| isNew | * | ||
| isJsonEdit | * | ||
| original | * |
public findNamespaceRoot(component: *): * source
When a component sets its api key, we need to check if it is unique within its namespace. Find the namespace root so we can calculate this correctly.
Params:
| Name | Type | Attribute | Description |
| component | * |
Return:
| * |
public getComponentInfo(key: *, group: *): * source
Params:
| Name | Type | Attribute | Description |
| key | * | ||
| group | * |
Return:
| * |
public getComponentsPath(component: *, parent: *): * source
Params:
| Name | Type | Attribute | Description |
| component | * | ||
| parent | * |
Return:
| * |
public getParentElement(element: *): * source
Params:
| Name | Type | Attribute | Description |
| element | * |
Return:
| * |
public highlightInvalidComponents() source
public onDrop(element: *, target: *, source: *, sibling: *): * source
Params:
| Name | Type | Attribute | Description |
| element | * | ||
| target | * | ||
| source | * | ||
| sibling | * |
Return:
| * |
public pasteComponent(component: Component): * source
Paste copied component after the current component.
Params:
| Name | Type | Attribute | Description |
| component | Component |
Return:
| * |
public populateRecaptchaSettings(form: *) source
Params:
| Name | Type | Attribute | Description |
| form | * |
public recurseNamespace(component: *): * source
Params:
| Name | Type | Attribute | Description |
| component | * |
Return:
| * |
public removeComponent(component: *, parent: *, original: *): * source
Params:
| Name | Type | Attribute | Description |
| component | * | ||
| parent | * | ||
| original | * |
Return:
| * |
public saveComponent(parent: *, component: *): boolean source
Called when a new component is saved.
Params:
| Name | Type | Attribute | Description |
| parent | * | ||
| component | * |
public searchFields(searchString: *) source
Params:
| Name | Type | Attribute | Description |
| searchString | * |
public updateBuilderGroup(name: *, group: *) source
Params:
| Name | Type | Attribute | Description |
| name | * | ||
| group | * |
public updateComponent(component: *, changed: *) source
Params:
| Name | Type | Attribute | Description |
| component | * | ||
| changed | * |
