@koumoul/vuetify-jsonschema-form

WebJar for @koumoul/vuetify-jsonschema-form

License

License

MIT
Categories

Categories

Github Development Tools Version Controls JSON Data ORM
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

github-com-blasta19-vuetify-jsonschema-form
Last Version

Last Version

0.21.0
Release Date

Release Date

Type

Type

jar
Description

Description

@koumoul/vuetify-jsonschema-form
WebJar for @koumoul/vuetify-jsonschema-form
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/blasta19/vuetify-jsonschema-form

Download github-com-blasta19-vuetify-jsonschema-form

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/github-com-blasta19-vuetify-jsonschema-form/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>github-com-blasta19-vuetify-jsonschema-form</artifactId>
    <version>0.21.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-blasta19-vuetify-jsonschema-form/
implementation 'org.webjars.npm:github-com-blasta19-vuetify-jsonschema-form:0.21.0'
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-blasta19-vuetify-jsonschema-form/
implementation ("org.webjars.npm:github-com-blasta19-vuetify-jsonschema-form:0.21.0")
'org.webjars.npm:github-com-blasta19-vuetify-jsonschema-form:jar:0.21.0'
<dependency org="org.webjars.npm" name="github-com-blasta19-vuetify-jsonschema-form" rev="0.21.0">
  <artifact name="github-com-blasta19-vuetify-jsonschema-form" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='github-com-blasta19-vuetify-jsonschema-form', version='0.21.0')
)
libraryDependencies += "org.webjars.npm" % "github-com-blasta19-vuetify-jsonschema-form" % "0.21.0"
[org.webjars.npm/github-com-blasta19-vuetify-jsonschema-form "0.21.0"]

Dependencies

compile (5)

Group / Artifact Type Version
org.webjars.npm : markdown-it jar [8.4.2,9)
org.webjars.npm : match-all jar [1.2.4,2)
org.webjars.npm : property-expr jar [1.5.1,2)
org.webjars.npm : vuedraggable jar [2.16.0,3)
org.webjars.npm : vue-swatches jar [1.0.2,2)

Project Modules

There are no modules declared in this project.

vuetify-jsonschema-form

NOTE: This is a forked from https://github.com/koumoul-dev/vuetify-jsonschema-form

Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.

Installation

npm i --save json-schema-for-vuetify

Usage

<template>
  <v-form v-model="formValid">
    <v-jsonschema-form v-if="schema" :schema="schema" :model="dataObject" :options="options" @error="showError" @change="showChange" @input="showInput" />
  </v-form>
</template>

<script>
import Vue from 'vue'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'
import Draggable from 'vuedraggable'
import axios from 'axios'
import VueAxios from 'vue-axios'
import Swatches from 'vue-swatches'
import 'vue-swatches/dist/vue-swatches.min.css'
import VJsonschemaForm from 'json-schema-for-vuetify'

Vue.use(Vuetify)
Vue.use(VueAxios, axios)

Vue.component('swatches', Swatches)
Vue.component('draggable', Draggable)

export default {
  components: {VJsonschemaForm},
  data() {
    return {
      schema: {...},
      dataObject: {},
      formValid: false,
      options: {
        debug: false,
        disableAll: false,
        autoFoldObjects: true
      }
    }
  },
  methods: {
    showError(err) {
      window.alert(err)
    },
    change(e) {
      console.log('"change" event', e)
    },
    input(e) {
      console.log('"input" event', e)
    }
  }
}
</script>

Versions

Version
0.21.0