darul75 / angular-awesome-slider

:arrows_clockwise: Angular slider control directive
http://darul75.github.io/angular-awesome-slider/
MIT License
144 stars 63 forks source link

ng-slider does not work when we jump from one scale to another,its only work when we scroll slider from one point to another. #1

Closed vikasnawal closed 10 years ago

vikasnawal commented 10 years ago

ng-slider does not work when we jump from one scale to another,its only work when we scroll slider from one point to another.So please provide me help how can i accomplish these event also .

darul75 commented 10 years ago

do you mean by dynamically changing scale value, by instance from

{....scale : [0, '|', 10, '|', 20, '|' , 30, '|', 40]} to {....scale : [0, '|', 10, '|', 20, '|' , 30, '|', 40, '|', 50]}

if you can get a fiddle or a link, muche better, busy I will try help you

vikasnawal commented 10 years ago

Thanks for quick response,I just want to move / jump from scale 10 to 30 with using mouse click on 30 scale instead of move pointer to that location.In below url http://angular-ui.github.io/ui-slider/demo/demo.html we can move with both way either move from pointer or click any location,

Thanks in advance ..

darul75 commented 10 years ago

oh yes nice catch, i will check what I can do but library is complicated ;)

vikasnawal commented 10 years ago

Thanks in advance :)

darul75 commented 10 years ago

Enjoy, should be working, give me feedback if any problem. Not forget star it ;)

vikasnawal commented 10 years ago

Its really nice working as expected.. I would truly appreciate your help on this. Thank you very much for your time and assistance in this matter.

darul75 commented 10 years ago

you are welcome, very glad helping you on this.

vikasnawal commented 10 years ago

Hi Darul, In ng-slider,is it possible to make the scale dynamically.Currently it is {scale : [0, '|', 10, '|', 20, '|' , 30, '|', 40]. Can we make it dynamic rather than we can set the hard-coded array in scale .

Thanks in advance.

darul75 commented 10 years ago

Hi Vika,

I will check what I can do, but soon I will send you my mastercard for transfer ;)

Do not hesitate to fork.

darul75 commented 10 years ago

fixed dude, any change to your options will be effective now https://github.com/darul75/ng-slider/issues/2

vikasnawal commented 10 years ago

Thank you for helping me solve this problem. Also is it feasible to make the step in decimal like 0.1 or 0.5 and so on.

darul75 commented 10 years ago

yeah, it feasible, I have to change something, I keep you in touch

vikasnawal commented 10 years ago

Thanks for a prompt response. I have accomplished that scenario.

darul75 commented 10 years ago

Fixed, next time please open new issue, thanks and not on this one. See details here how to use https://github.com/darul75/ng-slider/issues/3