Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tone4hook committed Apr 30, 2024
1 parent 3873e5a commit 781bda6
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,48 @@

[View on Github Pages](https://tone4hook.github.io/poly-form-canvas/)

+ 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` and `y`, both of which are numbers.

```
{
"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 to `false`, which means that the sort buttons will not be displayed for this control.

```
{
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"scope": "#/properties/corners",
"options": {
"showSortButtons": false
}
}
]
}
```

### Get Started

- `git clone`
Expand Down

0 comments on commit 781bda6

Please sign in to comment.