Avoid Decimal Values In Dijit/form/horizontalslider
In dijit/form/HorizontalSlider on change I am getting values in a textbox. The values are decimal, like 51.66777777. I want only 51.
Solution 1:
Have you ever seen Spinal Tap? This one goes to 11!
Here is the code that will work:
value: 0,minimum: 0,maximum: 500,discreteValues: 11,
You want 11 because you want 11 discrete values:
0,50,100,150,200,250,300,350,400,450,500
I created a fiddle for this problem.
Post a Comment for "Avoid Decimal Values In Dijit/form/horizontalslider"