JSPM

@headwire/jsonforms-react-spectrum-renderers

0.0.1-beta.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 38
  • Score
    100M100P100Q78709F
  • License MIT

React Spectrum Renderer Set for JSONForms

Package Exports

  • @headwire/jsonforms-react-spectrum-renderers

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@headwire/jsonforms-react-spectrum-renderers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

JSONForms - More Forms. Less Code

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)
  }
}