vue-generators / vue-form-generator

:clipboard: A schema-based form generator component for Vue.js
MIT License
2.99k stars 532 forks source link

"slider"/ion.RangeSlider field not initialized #390

Open zopyx opened 6 years ago

zopyx commented 6 years ago

I added a field with type: "slider" to my JSON field, also added the CSS and JS of ion.RangeSlider to my HTML template...however I don't the a range slider. The HTML DOM still contains the <field-slider> tag. Is there some extra initialization outside VFG needed? I

zoul0813 commented 6 years ago

It looks like the docs incorrectly identify the field as "slider". You should use "rangeSlider" instead.

Here's a Fiddle

{
    type: "rangeSlider",
    label: "Rank",
    model: "rank",
    min: 1,
    max: 10,
    required: true,
    sliderOptions: {
        grid: true
    }
}
zopyx commented 6 years ago

Yes, a documentation error.