$ npm install --save vue-form-generator
Download zip package, unpack and add the
vfg.jsfile to your project from
import Vue from 'vue';
import VueFormGenerator from 'vue-form-generator'
VueFormGenerator can be setup using the 'core' or 'full' variations.
- Core is a minimal version with only half the fields.
- Full is core + other fields.
If you don't know what to choose, don't worry, full is the default version. If you want the slimmed down version, here are the changes:
// "core" only
import Vue from 'vue'
import VueFormGenerator from 'vue-form-generator/dist/vfg-core.js'
While core fields don't require external dependencies, optional fields in the full package may need additional libraries. These dependencies fall into two camps: jQuery or Vanilla. You can find almost the same functionality in both flavors. That way, it's your choice to depend on jQuery or not.
You can find details about dependencies in each field page.