Fields
A field in the schema defines an input element to a value of model. For example, if you want to edit the model.selections
value with a select field, you have to create a field with select
type, what looks like this:
{
type: "select",
label: "Selections",
model: "selections"
},
Each field has its own options, so be sure to check out their documentations.
For example, input field need an inputType
to be specified as well.
{
type: "input",
inputType: "text",
label: "Name",
model: "name"
},
Available fields
Core fields
These fields are available in the core version of VueFormGenerator.
checkbox
- Checkbox for boolean valueschecklist
- Checkbox list to select multiple valuesinput
- Common input fieldNEW!
label
- Static text (e.g. timestamp, creation time...etc)radios
- Radio buttons to selectNEW!
select
- Select listsubmit
- This is a simple submit buttontextArea
- Text area field
Optional fields
These fields are available in the full version of VueFormGenerator. Some of these also have external dependency.
cleave
- Format input text content when you are typingdateTimePicker
- datetime picker with bootstrap-datetimepicker componentgoogleAddress
- Format input text content when you are typingimage
- Image select field (URL or upload in base64 string)masked
- Masked text input field with maskedinput componentnoUiSlider
- Lightweight JavaScript range sliderpikaday
- A refreshing JavaScript DatepickerselectEx
- select list with the bootstrap-select componentslider
- pretty range slider with ion.rangeSlider componentspectrum
- Color picker with "The No Hassle" Spectrum jQuery Colorpicker componentstaticMap
- Display a static map from Google Maps.switch
- Switch field (toggle two values (on/off, yes/no, active/inactive)vueMultiSelect
- Probably the most complete selecting solution for Vue.js
Custom fields
You can create custom fields too. Check here how you can do it.