@pvale/vue-vuetify
JSON Forms - More Forms. Less Code
Complex Forms in the blink of an eye
JSON Forms eliminates the tedious task of writing fully-featured forms by hand by leveraging the capabilities of JSON, JSON Schema and Javascript.
Vue Vuetify Renderers
This is the JSON Forms Vue Vuetify renderers package which provides a Vuetify based renderer set for JSON Forms Vue. The renderers are in a preview state.
Quick start
Install JSON Forms Core, Vue 3 and Vue 3 Vuetify Renderers.
npm i --save @jsonforms/core @jsonforms/vue @jsonforms/vue-vuetify
Also add the packages to the transpile dependencies in the vue.config.js file:
module.exports = {
transpileDependencies: ['@jsonforms/core', '@jsonforms/vue', '@jsonforms/vue-vuetify']
}
Use the json-forms component for each form you want to render and hand over the renderer set.
<script>
import { JsonForms } from '@jsonforms/vue';
import { vuetifyRenderers } from '@jsonforms/vue-vuetify';
const renderers = [
...vuetifyRenderers,
// here you can add custom renderers
];
export default defineComponent({
name: 'app',
components: {
JsonForms,
},
data() {
return {
renderers: Object.freeze(renderers),
data,
schema,
uischema,
};
},
methods: {
onChange(event) {
this.data = event.data;
},
},
});
</script>
<template>
<json-forms
:data="data"
:schema="schema"
:uischema="uischema"
:renderers="renderers"
@change="onChange"
/>
</template>
<style scoped>
@import '~@jsonforms/vue-vuetify/lib/jsonforms-vue-vuetify.esm.css';
</style>
If note done yet, please install Vuetify for Vue.
For more information on how JSON Forms can be configured, please see the README of @jsonforms/vue.
License
The JSONForms project is licensed under the MIT License. See the LICENSE file for more information.
Related Packages
Vue PrimeVue v4 renderers for JSON Forms — community-maintained fork of @jsonfor...
Version History
Pre-releases (15)
| Version | Released | Vue | License |
|---|---|---|---|
| 3.2.1-alpha.5-1 | ^3.2.47 | MIT | |
| 3.2.1-alpha.5 | ^3.2.47 | MIT | |
| 3.2.1-alpha.4 | ^3.2.47 | MIT | |
| 3.2.1-alpha.3 | ^3.2.47 | MIT | |
| 3.2.1-alpha.2 | ^3.2.47 | MIT | |
| 3.2.1-alpha.1 | ^3.2.47 | MIT | |
| 3.2.1-alpha | ^3.2.47 | MIT | |
| 3.1.0-preview.6-add-errorfiltering-mode | ^3.2.47 | MIT | |
| 3.1.0-preview.5-add-touched-state | ^3.2.47 | MIT | |
| 3.1.0-preview.4-add-touched-state | ^3.2.47 | MIT | |
| 3.1.0-preview.3-add-touched-state | ^3.2.47 | MIT | |
| 3.1.0-preview.2-add-touched-state | ^3.2.47 | MIT | |
| 3.1.0-preview.1-add-touched-state | ^3.2.47 | MIT | |
| 3.1.0-preview.0-add-array-list-title-style | ^3.2.47 | MIT | |
| 3.1.0-preview.0-fix-select-change-event | ^3.2.47 | MIT |