[Input] Dual Range slider and strict markers #10806
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
topic: forms
What problem are you trying to solve?
I want a good way to make dual/multi range sliders. Lots of websites (especially ecommerce) have filters to help people select a product that meets their requirements (eg price filters).
I would also appreciate a good way to force the use of markers in the selection
By making this into a native element, it will simplify the web by needing less javascript and making things significantly simpler.
What solutions exist today?
lots of libraries layer 2 sliders on top of each other with lots of css hacks as far as I understand.
currently I have been using jquery ui's slider.
How would you solve it?
1st requested feature
this css would be used to override the default format that dualrange would provide
this should automatically take into account that the handles cannot cross over each other, and adhere to min/max (and rescale accordingly)
2nd requested feature
currently without the new strict attribute, the slider "snaps" to a close marker when you approach it, but the input still accepts values in between the options. adding a strict option will mean only the options in the datalist will be accepted. the slider will still snap, but it will always snap to the nearest marker
another option would be to combine the step attribute with the datalist. maybe something like:
Anything else?
I am basing my idea on how much I like the functionality there. I think it works extremely well, and I strongly believe having this as a native feature would be extremely useful
eg:
I would really love some feedback on this
The text was updated successfully, but these errors were encountered: