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.
20 lines • 353 B
JSON
{
"schema": {
"language": {
"type": "string",
"title": "Best language",
"enum": [ "JavaScript", "Python", "PHP", "Java", "C++", "other" ]
}
},
"form": [
{
"key": "language",
"type": "radiobuttons",
"activeClass": "btn-success"
},
{
"type": "submit",
"title": "Submit"
}
]
}