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

Lables are not moving when we click outside the range #63

Closed praswebdev closed 9 years ago

praswebdev commented 9 years ago

Hi, The to label is not moving when we click outside the to range

darul75 commented 9 years ago

Yes I have seen it ;) damn...

praswebdev commented 9 years ago

Also can we give string values for the slider?

darul75 commented 9 years ago

sure, some examples here https://github.com/darul75/ng-slider/blob/master/src/ng-slider.html#L112

praswebdev commented 9 years ago

i mean to show steps instead of numbers in slider labels. I did see a solution for jquery slider. http://stackoverflow.com/questions/11339601/jquery-ui-slider-with-string-values

darul75 commented 9 years ago

Sure, good idea, i just need time as few bug to resolve first. I will open other issue and keep you in touch.

darul75 commented 9 years ago

it was tricky, thx for testing following version https://github.com/darul75/ng-slider/releases/tag/2.1.8 and put any star if you can on repo ;)

darul75 commented 9 years ago

and for your scale labels, just put it like that in you options

scale attribute options:

$scope.options = {              
 from: 0,
to: 80,
step: 1,
scale: ['very sad', 'sad', 'not so sad', 'happy', 'very happy']                                 
};
praswebdev commented 9 years ago

:-) Thanks for fixing this bug. This slider is really useful and i was looking for an angular slider with no jquery dependency. Please let me know how you calculate the label distance. Because i am looking for the label to be separated. After this fix just noticed that on load they are together separeted by -

darul75 commented 9 years ago

I will update to get separator - only when labels to closed, sorry

darul75 commented 9 years ago

https://github.com/darul75/ng-slider/releases/tag/2.1.9

praswebdev commented 9 years ago

Thanks a lot..works perfect