A tool for embedding OneSchema into your application. This library will give you convenient bindings to add an iframe to your application which can open OneSchema and import data into your application.
Getting Started
Installation
You can install this package with npm:
npm i --save @oneschema/importer
or with a script tag:
<script src="https://d3ah8o189k1llu.cloudfront.net/oneschema-importer-0.3.latest.min.js"></script>
Sample usage
import oneschemaImporter from "@oneschema/importer"
const importer = oneschemaImporter({
clientID: 'YOUR_CLIENT_ID',
templateKey: 'YOUR_TEMPLATE_KEY',
userJwt: 'YOUR_USER_JWT',
importConfig: { type: "local" }
devMode: true,
className: 'oneschema-importer',
})
importer.launch()
importer.launch({
templateKey: 'YOUR_TEMPLATE_KEY',
userJwt: 'YOUR_USER_JWT',
importConfig: { type: "local" }
})
importer.on("success", (data) => {
})
importer.on("cancel", () => {
})
importer.on("error", (message) => {
})
Documentation
Please see 📚 OneSchema's documentation for 📒 API reference and other helpful guides.