React Spectrum Renderer Set for JSONForms
npm install @headwire/jsonforms-react-spectrum-renderersJSONForms eliminates the tedious task of writing fully-featured forms by hand by leveraging the capabilities of JSON, JSON Schema and Javascript.
!!!! Work in Progress !!!
#### Custom options for Grid Array Control and Table Array Control
``js`
{
"type": "Control",
"scope": "#/properties/myArray",
"options": {
"addButtonPosition": "top", // "top" or "bottom"
"addButtonLabel": "Add item", // optional custom label for Add button
"addButtonLabelType": "tooltip", // "tooltip" or "inline"
"table": true, // When true, uses @react-spectrum/table. When false, uses Grid component from React Spectrum (default: false)
"spacing": [3, 1], // Numbers correspond to proportions of column widths (defaults to 1). Has effect only when table=false
}
}
#### Custom options for Horizontal Layout
`js``
{
"type": "HorizontalLayout",
"elements": [ ... ],
"options": {
"spacing": [3, 1], // numbers correspond to proportions of column widths (defaults to 1)
}
}