new AutomaticForm()
A automatic form view created from a JSON Schema
- Source:
Extends
Members
-
<static> crossOrigin
-
The crossOrigin property - enables cross origin fetch
- Source:
Properties:
Name Type Description crossOrigin
boolean The crossOrigin property
-
<static> description
-
The description property
- Source:
Properties:
Name Type Description description
string The description of the form
-
<static> isInitalized
-
The initialized property
- Source:
Properties:
Name Type Description isInitalized
boolean The initialized property
-
<static> model
-
The model property
- Source:
Properties:
Name Type Description model
Augmented.Model The model property
-
<static> name
-
The name property
- Source:
Properties:
Name Type Description name
string The name of the form
-
<static> title
-
The title property
- Source:
Properties:
Name Type Description title
string The title of the form
-
<static> uri
-
The URI property
- Source:
Properties:
Name Type Description uri
string The URI property
Methods
-
<static> display()
-
Fields to display - null will display all
- Source:
-
<static> initialize(options)
-
Initialize the form view
pass clearForm = true to start a fresh formParameters:
Name Type Description options
object The view options
- Source:
Returns:
Returns true on success of initalization
- Type
- boolean
-
<static> isValid()
-
Is the form valid
- Source:
Returns:
Returns true if valid
- Type
- boolean
-
<static> populate(data)
-
Populate the form
Parameters:
Name Type Description data
object Data to fill in
- Source:
Returns:
Returns the view context ('this')
- Type
- object
-
<static> remove()
-
Remove the form and all binds
- Source:
-
<static> render Renders the form()
-
Render the form
- Source:
Returns:
Returns the view context ('this')
- Type
- object
-
<static> reset()
-
Reset the form
- Source:
Returns:
Returns the view context ('this')
- Type
- object
-
<static> setSchema(schema)
-
Sets the schema
Parameters:
Name Type Description schema
object The JSON schema of the dataset
- Source:
-
<static> setURI(uri)
-
Sets the URI
Parameters:
Name Type Description uri
string The URI
- Source:
-
<static> showMessage(message)
-
Show a message related to the form
Parameters:
Name Type Description message
string Some message to display
- Source:
-
<static> showProgressBar(show)
-
Enable/Disable the progress bar
Parameters:
Name Type Description show
boolean Show or Hide the progress bar
- Source:
-
<static> validate()
-
Validate the form
- Source:
Returns:
Returns true on success of validation
- Type
- boolean