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.
31 lines • 548 B
JSON
{
"schema": {
"thoughts": {
"type": "array",
"title": "Thoughts",
"items": {
"type": "string",
"title": "A thought",
"default": "Grmpf"
}
}
},
"form": [
{
"type": "tabarray",
"items": [
{
"type": "section",
"legend": "{{idx}}. {{value}}",
"items": [
{
"key": "thoughts[]",
"title": "Thought {{idx}}",
"valueInLegend": true
}
]
}
]
}
]
}