angular2-json-schema-form
Version:
Angular 2 JSON Schema Form builder
19 lines (18 loc) • 534 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
} ]
}