Socket
Socket
Sign inDemoInstall

@jsonforms/vue2-vuetify

Package Overview
Dependencies
9
Maintainers
6
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsonforms/vue2-vuetify

Vue 2 Vuetify renderers for JSON Forms


Version published
Weekly downloads
169
decreased by-9.63%
Maintainers
6
Created
Weekly downloads
 

Readme

Source

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 2 Vuetify Renderers

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

Quick start

Install JSON Forms Core, Vue 2 and Vue 2 Vuetify Renderers.

npm i --save @jsonforms/core @jsonforms/vue2 @jsonforms/vue2-vuetify

Also add the packages to the transpile dependencies in the vue.config.js file:

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

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 { vuetifyRenderers } from '@jsonforms/vue2-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>

As JSON Forms uses the Composition API you need to use at least Vue 2.7.

If note done yet, please install Vuetify for Vue 2.

For more information on how JSON Forms can be configured, please see the README of @jsonforms/vue2.

License

The JSONForms project is licensed under the MIT License. See the LICENSE file for more information.

Keywords

FAQs

Last updated on 31 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc