- This JSON Form Schema defines a property
corners
which is an array of exactly 4 items. - Each item is an object with two required properties
x
andy
, both of which are numbers.
// JSON Form Schema
{
"properties": {
"corners": {
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": {
"type": "object",
"properties": {
"x": { "type": "number" },
"y": { "type": "number" }
},
"required": ["x", "y"]
}
}
}
}
- This UI Schema defines a vertical layout with one control element.
- The control is bound to the
corners
property of the form data (#/properties/corners
). - The
showSortButtons
option is set tofalse
, which means that the sort buttons will not be displayed for this control.
// UI Schema
{
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"scope": "#/properties/corners",
"options": {
"showSortButtons": false
}
}
]
}
-
git clone
-
cd poly-form-canvas
-
npm i
-
npm run dev
Vue is not as documented compared to React