1.7.0 • Published 9 years ago

react-jsonschema-form-reference-schema-wrapper v1.7.0

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

react-jsonschema-form-reference-schema-wrapper

travis npm semantic-release

Usage

  • Wrap JSON schema form with this function:

    import Form from 'react-jsonschema-form';
    const WrappedForm = referenceSchemaWrapper(
      Form,
      {
        findRefs,
        parse: EJSON.parse,
        stringify: EJSON.stringify,
      }
    )
  • specify options in referenceSchema which should be passed into the form as a prop along with your schema

    {
      "domainId": {
        "$ref": "domains",
        "remoteKey": "_id",
        "remoteLabelKey": "name",
        "dependents": [
          { "key": "domainName", "remoteKey": "name" }
        ],
        "filters": [
          { "key": "active", "value": true }
        ]
      }
    }

Development

Build index.js file before using on local

npm run build
1.7.0

9 years ago

1.6.1

9 years ago

1.6.0

9 years ago

1.5.2

9 years ago

1.5.1

10 years ago

1.5.0

10 years ago

1.4.2

10 years ago

1.4.1

10 years ago

1.4.0

10 years ago

1.3.3

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago