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.
21 lines • 572 B
JSON
{
"schema": {
"range": {
"type": "integer",
"title": "Is JSON Form useful?",
"description": "The field should appear as a range that accepts values between 0 (excluded) and 200 by steps of 20 on browsers that support the \"range\" input type.<br/>Note that the \"step\" constraint is not enforced when the form is submitted.",
"default": 40,
"minimum": 0,
"exclusiveMinimum": true,
"maximum": 200
}
},
"form": [
{
"key": "range",
"type": "range",
"step": 20,
"indicator": true
}
]
}