Login to follow
JSONEditor

JSONEditor (ODC)

Stable version 0.1.0 (Compatible with ODC)
Uploaded on 12 May 2023 by valantic LCS
JSONEditor

JSONEditor (ODC)

Documentation
0.1.0

JSONEditor has a single block that must be dropped in the screen: JSONEditor.

Parameters:

  • ContainerId
    • The container where the form will be rendered
  • JSONSchema
    • JSON Schema to build the form
  • JSONData
    • The form initial data. It can be {} or [] for array types.
  • UseChoices
    • If the dropdowns should be converted to use the Choices plugin
  • Configuration

Events:

  • OnFormReady
    • Triggered when the form is loaded. The parameter FormId is the final container id used to call the public client actions

Client Actions:

  • ValidateForm
    • Validates a form. If not valid, return a list of errors in JSON format
  • GetJSONFromForm
    • Get the form value in JSON format
  • DestroyForm
    • Destroy the form