Skip to content

JsonForm ​

A form definition.

Definition ​

  • JsonForm
    • version '1': the version of the format
    • fields readonly JsonField[]
    • formRules readonly JsonFormRule[]: optional, rules that compare fields
    • layout JsonLayout: optional, where the fields go
    • $schema string: optional, where its JSON Schema is, for editors. Never read

Explanation ​

See define your form. A definition from outside your code isn't known to be a JsonForm until validate() says so.

Types ​