VueJS Generators
GitHubNPMJSFiddleCodePen
develop
develop
  • Getting Started
  • Installation
  • Usage
    • Styling
  • Component
    • Schema
    • Model
    • Options
    • Events
  • Fields
    • Field Properties
      • Inside Buttons
    • Core Fields
      • checkbox
      • checklist
      • input
      • label
      • radios
      • select
      • submit
      • textArea
    • Optional Fields
      • cleave
      • dateTimePicker
      • googleAddress
      • image
      • masked
      • noUiSlider
      • pikaday
      • selectEx
      • rangeSlider
      • spectrum
      • staticMap
      • switch
      • vueMultiSelect
    • Custom Fields
  • Groups
  • Validation
    • Built in Validators
    • Custom Validators
    • Handling Validation Events
Powered by GitBook
On this page
  • NPM
  • Manual
  • Import into Project
  • Core vs Full version
  • Dependencies

Was this helpful?

Installation

PreviousGetting StartedNextUsage

Last updated 6 years ago

Was this helpful?

NPM

You can install it via .

$ npm install --save vue-form-generator

Manual

Download zip package, unpack and add the vfg.css and vfg.js file to your project from /dist folder.

https://github.com/vue-generators/vue-form-generator/releases/latest

Import into Project

<script>
    import Vue from 'vue';
    import VueFormGenerator from 'vue-form-generator'
    import 'vue-form-generator/dist/vfg.css'
    Vue.use(VueFormGenerator)
</script>

Core vs Full version

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
<script>
    import Vue from 'vue'
    import VueFormGenerator from 'vue-form-generator/dist/vfg-core.js'
    import 'vue-form-generator/dist/vfg-core.css'
    Vue.use(VueFormGenerator)
</script>

Dependencies

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.

Field type

jQuery

Vanilla

Address autocomplete

N/A

Color picker

N/A

Date picker

Masked Input

Multi Selection

Slider

You can find details about dependencies in each field page.

VueFormGenerator uses and internally.

NPM
fecha
lodash
googleAddress
spectrum
datetime
pikaday
masked
cleave
selectEx
vueMultiSelect
slider
noUiSlider