@collegewap/jsonforms-react-spectrum-renderers
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-beta.4 • Public • Published

JSONForms - More Forms. Less Code

Complex Forms in the blink of an eye

JSONForms eliminates the tedious task of writing fully-featured forms by hand by leveraging the capabilities of JSON, JSON Schema and Javascript.

Spectrum Renderers Package

!!!! Work in Progress !!!

Custom options

Custom options for Grid Array Control and Table Array Control

{
  "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

{
  "type": "HorizontalLayout",
  "elements": [ ... ],
  "options": {
    "spacing": [3, 1], // numbers correspond to proportions of column widths (defaults to 1)
  }
}

Package Sidebar

Install

npm i @collegewap/jsonforms-react-spectrum-renderers

Weekly Downloads

0

Version

0.0.1-beta.4

License

MIT

Unpacked Size

548 kB

Total Files

302

Last publish

Collaborators

  • collegewap