@obiba/quasar-ui-json-form
v0.1.1
Published
Quasar components for JSON Forms
Downloads
285
Readme
Component QJsonForm
Compatible with Quasar UI v2 and Vue 3.
A Quasar UI component that renders dynamic, schema-driven forms based on a JSON Schema and an optional UI schema, using JSON Forms renderers styled with Quasar components.
Usage
Quasar CLI project
Install the App Extension.
OR:
Create and register a boot file:
import Vue from 'vue'
import Plugin from '@obiba/quasar-ui-json-form'
import '@obiba/quasar-ui-json-form/dist/index.css'
Vue.use(Plugin)OR:
<style src="@obiba/quasar-ui-json-form/dist/index.css"></style>
<script>
import { Component as QJsonForm } from '@obiba/quasar-ui-json-form'
export default {
components: {
QJsonForm
}
}
</script>Vue CLI project
import Vue from 'vue'
import Plugin from '@obiba/quasar-ui-json-form'
import '@obiba/quasar-ui-json-form/dist/index.css'
Vue.use(Plugin)OR:
<style src="@obiba/quasar-ui-json-form/dist/index.css"></style>
<script>
import { Component as QJsonForm } from '@obiba/quasar-ui-json-form'
export default {
components: {
QJsonForm
}
}
</script>Setup
$ npm installDeveloping
$ npm run devBuilding package
$ npm run buildAdding Testing Components
in the ui/dev/src/pages you can add Vue files to test your component/directive. When using npm run dev to build the UI, any pages in that location will automatically be picked up by dynamic routing and added to the test page.
Adding Assets
If you have a component that has assets, like language or icon-sets, you will need to provide these for UMD. In the ui/build/script.javascript.js file, you will find a couple of commented out commands that call addAssets. Uncomment what you need and add your assets to have them be built and put into the ui/dist folder.
Donate
If you appreciate the work that went into this, please consider donating to Quasar.
License
MIT (c) Yannick Marcon [email protected]
