#4726 closed enhancement (wontfix)
Minimum range for sliders
Reported by: | gwk | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.slider | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I have a use case where the handles in a range slider aren't allowed to have the same value, basically instead of stopping the handle from moving past the other handle it should be possible to stop the handle when still a certain distance away.
Attached is a patch with an extra option 'minRange' where you can specify the minimum amount of steps the handles be seperated.
Attachments (1)
Change History (3)
Changed 14 years ago by
Attachment: | minrange.patch added |
---|
comment:1 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
If we add a min range option, we have to add a max range option. We would also need to figure out how this works with three handles, four handles, ten handes, etc. The possible options are way to large for us to build into the plugin.
This can be easily implemented using the slide callback and returning false if the range would become too small.