Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#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)

minrange.patch (778 bytes) - added by gwk 14 years ago.

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by gwk

Attachment: minrange.patch added

comment:1 Changed 14 years ago by Scott González

Resolution: wontfix
Status: newclosed

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.

comment:2 Changed 11 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.