Class: AutomaticForm

.Presentation. AutomaticForm


new AutomaticForm()

A automatic form view created from a JSON Schema

Source:

Extends

Members


<static> crossOrigin

The crossOrigin property - enables cross origin fetch

Properties:
Name Type Description
crossOrigin boolean

The crossOrigin property

Source:

<static> description

The description property

Properties:
Name Type Description
description string

The description of the form

Source:

<static> isInitalized

The initialized property

Properties:
Name Type Description
isInitalized boolean

The initialized property

Source:

<static> model

The model property

Properties:
Name Type Description
model Augmented.Model

The model property

Source:

<static> name

The name property

Properties:
Name Type Description
name string

The name of the form

Source:

<static> title

The title property

Properties:
Name Type Description
title string

The title of the form

Source:

<static> uri

The URI property

Properties:
Name Type Description
uri string

The URI property

Source:

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 form

Parameters:
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