slider icon indicating copy to clipboard operation
slider copied to clipboard

Step property

Open beatriznbarroso opened this issue 2 years ago • 1 comments

Hello,

How can I make the slider move in decimal points but specific decimal points like, for example, move 0.50 at a time?

beatriznbarroso avatar May 25 '22 17:05 beatriznbarroso

Steps is not working sometimes , even a step and values are declared as ints it returning some floats. It looks strange when you have min:200, max:4500, step:50 and finally you get 2300.000000001

nowackipawel avatar Jun 03 '22 16:06 nowackipawel

@beatriznbarroso here's now:

const options = {
  step: 0.5,
  format: {
    decimals: 1,
  }
}
<Slider v-bind="options" />

@nowackipawel can't reproduce, probably already solved, if not feel free to open a new issue.

adamberecz avatar Dec 20 '22 10:12 adamberecz