#2993 closed enhancement (wontfix)
"minRange" option for ui slider
Reported by: | Owned by: | paul | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | ui.slider | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
It'd be nice to have a "minRange" option added to the ui slider that will enforce a minimum distance between 2 handles of a slider. Like the behavior of the YUI slider here:
http://developer.yahoo.com/yui/examples/slider/slider_dual_thumb.html
API link (has the minrange option): http://developer.yahoo.com/yui/docs/YAHOO.widget.DualSlider.html#property_minRange
I think the minRange option would be specified in terms of steps (e.g. 1 step spacing, 2 step spacing) and/or value (e.g. the 2 handles should always have a minimum range between them of X)
Change History (5)
comment:1 Changed 15 years ago by
Milestone: | 1.5 → 1.5.2 |
---|
comment:2 Changed 15 years ago by
Milestone: | 1.5.2 |
---|
comment:3 Changed 14 years ago by
Milestone: | → TDB |
---|---|
Status: | new → assigned |
comment:4 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
This is possible (as of 1.7) by using the slide event. Returning false will prevent a slide, so you can compare the values and return false if they are too close. For example: