Vue-slider-component: Default value : none

Created on 9 Oct 2018  路  5Comments  路  Source: NightCatSama/vue-slider-component

Is there a way to not have any default value. My options looks like this :
options: { value: '', width: '80%', tooltip: 'always', disabled: false, piecewise: true, piecewiseLabel: true, style: { marginLeft: '10%' }, data: [ '0', '1', '2', '3', ], piecewiseStyle: { backgroundColor: '#ccc', visibility: 'visible', width: '12px', height: '12px' }, piecewiseActiveStyle: { backgroundColor: '#3498db' }, labelActiveStyle: { color: '#3498db' } },

Most helpful comment

There is a problem with the previous example. When you click the first one, there will be no response.

https://jsfiddle.net/2xy72dod/8781/

All 5 comments

Then how do you want to display when there is no value?

Something like :
without default value

Or if there is a way to display differently a slider which just loaded with a default value, and a slider with a value that has been really selected by the user.
Thanks for your quick answer.

Sorry, there is currently no way to implement this function directly.

But it can be achieved by a slightly more complicated means. I wrote an example and hope to help you.

https://jsfiddle.net/2xy72dod/8734/

Okay thanks for your help.
This way should be enough for me.

Cheers

There is a problem with the previous example. When you click the first one, there will be no response.

https://jsfiddle.net/2xy72dod/8781/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bogdan1190 picture bogdan1190  路  5Comments

akinhwan picture akinhwan  路  3Comments

mayajuni picture mayajuni  路  3Comments

rvasoya picture rvasoya  路  9Comments

qidaneix picture qidaneix  路  4Comments