Home Reference Source
import FormBuilder from 'formiojs/src/FormBuilder.js'
public class | source

FormBuilder

Extends:

src/Element.js~ElementForm → FormBuilder

Static Member Summary

Static Public Members
public static

options: *

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

create(display: *): *

Inherited Summary

From class Form
public static

embed(embed: *): *

public get

form: object: *

Returns the loaded forms JSON.

public set

form(formParam: string | object): *

Sets the form.

public
public

element: *

public
public

options: *

public

ready: *

public
public
private

_form: *

public

attach(element: *): *

public

build(): Promise<T>

Build a new form.

public

create(display: string): *

Create a new form instance provided the display of the form.

public

empty()

public

errorForm(err: *): {"components": *}

public

getSubmission(formio: *): *

public

render(): *

public

sanitize(string: *): *

Sanitize an html string.

public

setContent(element: *, content: *, forceSanitize: *): boolean

public

setDisplay(display: string): Promise<T>

Changes the display of the form.

public

setForm(formParam: *): *

Static Public Members

public static options: * source

Override:

Form#options

Public Constructors

public constructor() source

Creates an easy to use interface for embedding webforms, pdfs, and wizards into your application.

Override:

Form#constructor

Public Methods

public create(display: *): * source

Create a new form instance provided the display of the form.

Override:

Form#create

Params:

NameTypeAttributeDescription
display *

Return:

*