Hello,
Is there a way to set the slider’s step value so it accepts an array of values? For example, I want to show a minimum value of 4, a middle value of 6, and a maximum value of 10, so I need the first step value to be 2 and the second to be 4. Is this possible?
Thanks,
Jodi
Hello
You need the next:
step : 2,
min : 2,
max : 10,
Documentation:
docs.dhtmlx.com/slider__constructor.html
Hi Darya,
Thank you for the response. I’m not sure this fixes my issue, though, as I need the step value to skip 8 and go directly from 6 to 10 on the slider. Assigning a step value of 2 with a min. of 2 and max. of 10 would result in values of 2, 4, 6, 8, and 10 to appear on the slider, but I want to make 4, 6, and 10 the only options on the slider.
Sorry, it is quite hard to imagine verbally, could you attach something like ruler with the values min, max, steps and currect value
And we will give you an approach
The slider I am working on is posted at leightronix.com/slider_stepvalue.html and has the following values assigned to it:
min: 768
max: 1536
step: 256
value: 768
I want the slider to jump from the minimum value of 768 to 1024, which I can do with the step value of 256. From 1024, though, I want the step value to increase to 512 so the slider will then move right to 1536. I’m not sure how to change the step from 256 to 512 at this point, so I am getting the unwanted value of 1280 between 1024 and 1536.
Thanks for your help!
Sorry, but there is no possibility to use such custom scale.