angular-ui / ui-slider

jQuery UI Slider for AngularJS
https://htmlpreview.github.io/?https://github.com/angular-ui/ui-slider/master/demo/index.html
MIT License
265 stars 176 forks source link

model to define steps array with numbers to allow slider to snap into defined numbers only #90

Closed dadoadk closed 9 years ago

dadoadk commented 9 years ago

Is there a way to define an array of numbers to be step values. In example [5,9,16,30,34,45,60], and have slider snap only into these numbers? So, instead of defining step="10" , to have stepValues="5,9,16,30,34,45,60", or have a model in scope $scope.sliderModel = { value:30, stepValues:[5,9,16,30,34,45,60] }

PowerKiKi commented 9 years ago

Since this project use jQuery UI Slider, you should first have a look there if it is possible...