mdSlider: support for range sliders
Please consider adding a range (second value) option to md-slider.
Example use case: when searching for a hotel, I want to specify both minimum and maximum price, and have the application show me results that fall between those. Demonstrated in AirBnB search page.
This feature has been previously implemented in
- https://github.com/Venturocket/angular-slider
- http://angular-ui.github.io/ui-slider/demo/demo.html
+1
+1
+1
+1
+1. There is also https://github.com/angular-ui/ui-slider to look at.
+1. I used this as an alternative: https://github.com/danielcrisp/angular-rangeslider
+1, would be good if the targets can be defined as functions...
+1
+1
+1
+1
For those in desperate need, I made this directive that simulates a range slider with two single md-sliders. It works ok, with three minor issues
a) the left slider can override and push the right slider b) the right slider moves very slightly when sliding left slider (not yet noticed by users). c) minimum value of 1
code here https://gist.github.com/EdwardCTaylor/31e26e2c804eec78e97e
min-gap defines minimum value spacing between the two sliders (to prevent awkward overlap). lower-value and upper-value are the outputs.
(you will need to add your own templateUrl for html template).
Happy to receive any developments anyone has on this, with a little love may become more robust.
+1
+1
Thanks to @EdwardCTaylor at first,base on your solution,i have a improved version. Here https://gist.github.com/kuitos/89e8aa538f0a507bd682
+1
+1
@ThomasBurleson what does the G label mean?? It's not intuitively obvious as far as labels go.
@ilanbiala - G is a label-used internally for core team purposes.
+1