Skip to content

Releases: vip-git/universal-json-schema

Extensibility: Custom components enabled

22 Aug 10:33
Compare
Choose a tag to compare

Component extensibility enabled for jsonschema.

Following example
Schema.json

{
  "title": "A registration form",
  "description": "A simple form example.",
  "type": "object",
  "properties": {
    "customRating": {
      "type": "integer",
      "title": "Custom Rating",
      "component": "customRating"
    },
  }
}

Then mounting your JSON Schema Form with given name definition inside props components

<Form
  schema={schema}
  uiSchema={uiSchema}
  formData={formData}
  onCancel={onCancel}
  onSubmit={onSubmit}
  onUpload={onUpload}
  onChange={onFormChanged}
  components={{
    customRating: ({ onChange }) => (
  		<CustomRating onChange={onChange} formData={formData} />
    ),
  }}
  submitOnEnter
  activityIndicatorEnabled
/>

Formdata.json

{
  "customRating": 3
}

Running Example

Detailed Docs :

image

Stable Release

08 Aug 16:25
9a0d2f6
Compare
Choose a tag to compare
2.0.21

Update README.md

Node Engine compatibility removed

09 Mar 16:03
Compare
Choose a tag to compare

Stable release with text-editor improvements

09 Mar 15:48
Compare
Choose a tag to compare

Stable Release

21 Oct 20:05
Compare
Choose a tag to compare

New components integrated

  • Material UI Date / time picker
  • Material UI Multi-selecbox
  • Creatable multi selectbox
  • Component active / inactive
  • Rich Text Editor

Latest Material UI version updated

08 Aug 22:35
Compare
Choose a tag to compare
2.0.0

fix: removing package-lock