Module: formElement

Definition and construction of form elements determined by JSON Schemas.

Source:

Classes

FormElement

Methods

(inner) buildArray(fe) → {module:childApplicators~ArrayHandler}

Builds the form element content of an array-typed JSON Schema.

Parameters:
Name Type Description
fe module:formElement~FormElement

The form element which the content component will be built for.

Source:
Returns:

The component handling the array-typed JSON Schema.

Type
module:childApplicators~ArrayHandler

(inner) buildBoolean(fe) → {module:components~InputComponent}

Builds the form element content of a boolean-typed JSON Schema.

Parameters:
Name Type Description
fe module:formElement~FormElement

The form element which the content component will be built for.

Source:
Returns:

The component presenting an input control for the boolean-typed JSON Schema.

Type
module:components~InputComponent

(inner) buildContent(fe) → {module:components~Component}

Builds the form element content based on its associated JSON Schema.

Parameters:
Name Type Description
fe module:formElement~FormElement

The form element which the content component will be built for.

Source:
Returns:

The content component.

Type
module:components~Component

(inner) buildEnum(fe) → {module:components~InputComponent}

Builds the form element content of an enum JSON Schema.

Parameters:
Name Type Description
fe module:formElement~FormElement

The form element which the content component will be built for.

Source:
Returns:

The component presenting an input control for the enum JSON Schema.

Type
module:components~InputComponent

(inner) buildNull() → {module:components~Component}

Builds the form element content of a null-typed JSON Schema.

Source:
Returns:

The component presenting the null -typed JSON Schema.

Type
module:components~Component

(inner) buildNumber(fe) → {module:components~InputComponent}

Builds the form element content of a number-typed JSON Schema.

Parameters:
Name Type Description
fe module:formElement~FormElement

The form element which the content component will be built for.

Source:
Returns:

The component presenting an input control for the number-typed JSON Schema.

Type
module:components~InputComponent

(inner) buildObject(fe) → {module:childApplicators~ObjectHandler}

Builds the form element content of an object-typed JSON Schema.

Parameters:
Name Type Description
fe module:formElement~FormElement

The form element which the content component will be built for.

Source:
Returns:

The component handling the object-typed JSON Schema.

Type
module:childApplicators~ObjectHandler

(inner) buildSelectors(fe) → {module:selectors~SelectorsContainer}

Builds the selector toolbars that allow to choose among the possible JSON Schema materializations regarding its in-place applicators.

Parameters:
Name Type Description
fe module:formElement~FormElement

The form element which the selector toolbar will be built for.

Source:
Modifies:
Returns:

The container handling the selector toolbars.

Type
module:selectors~SelectorsContainer

(inner) buildString(fe) → {module:components~InputComponent}

Builds the form element content of a string-typed JSON Schema.

Parameters:
Name Type Description
fe module:formElement~FormElement

The form element which the content component will be built for.

Source:
Returns:

The component presenting an input control for the string-typed JSON Schema.

Type
module:components~InputComponent

(inner) buildTitle(fe) → {module:components~Component}

Builds a title component.

Parameters:
Name Type Description
fe module:formElement~FormElement

The form element which the title will be built for.

Source:
Returns:

The title component.

Type
module:components~Component

(inner) buildTitleIcon(fe) → {module:components~Component}

Builds a title icon component.

Parameters:
Name Type Description
fe module:formElement~FormElement

The form element which the title icon will be built for.

Source:
Returns:

The title icon component.

Type
module:components~Component

(inner) setLabelReference(fe)

Sets the title label of a form element to point to its referred input control.

Parameters:
Name Type Description
fe module:formElement~FormElement

The form element which the content component will be built for.

Source:
Modifies: