jsonform
Version:
Client-side JavaScript library that generates HTML forms from structured data models expressed using a JSON schema, possibly completed by a form layout description.
29 lines • 475 B
JSON
{
"schema": {
"thoughts": {
"type": "array",
"items": {
"type": "string",
"title": "Thought",
"default": "wtf"
}
}
},
"form": [
{
"type": "tabarray",
"items": [
{
"type": "section",
"legend": "{{idx}}. {{value}}",
"items": [
{
"key": "thoughts[]",
"valueInLegend": true
}
]
}
]
}
]
}