@sourcedigital/jsonforms-vue2-quasar-v1
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

JSON Forms - Vue.js 2 + Quasar v1 renderers

This is the JSON Forms Vue 2 Quasar v1 renderers package which provides a Quasar based renderer set for JSON Forms Vue 2.

Please note that JSON Forms dropped support for Vue 2, and their version 3.1.0 is the last version that supports Vue 2. Also, as JSON Forms uses the Composition API you need to use at least Vue 2.7.

Quick start

Install JSON Forms Core, Vue 2 and Quasar v1 Renderers.

npm i --save @jsonforms/core@3.1.0 @jsonforms/vue2@3.1.0 @sourcedigital/jsonforms-vue2-quasar-v1

Also add the packages to the transpile dependencies in the quasar.conf.js file:

module.exports = {
    transpileDependencies: ['@jsonforms/core', '@jsonforms/vue2', '@sourcedigital/jsonforms-vue2-quasar-v1']
}

Use the json-forms component for each form you want to render and hand over the renderer set.

<script>
import { JsonForms } from '@jsonforms/vue2';
import { quasarRenderers } from '@sourcedigital/jsonforms-vue2-quasar-v1'';

const renderers = [
  ...quasarRenderers,
  // 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>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.50latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.01

Package Sidebar

Install

npm i @sourcedigital/jsonforms-vue2-quasar-v1

Weekly Downloads

1

Version

0.1.5

License

MIT

Unpacked Size

709 kB

Total Files

8

Last publish

Collaborators

  • dev-sourcedigital