Skip to main content

Search and Top Navigation

#4779 open feature ()

Opened August 13, 2009 04:50PM UTC

Last modified June 24, 2014 11:55PM UTC

Slider Has No Way To Dynamically Add Handles

Reported by: machineghost Owned by:
Priority: minor Milestone: none
Component: ui.slider Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

I've looked very hard through both the docs and the code, and as far as I can see there is no way to dynamically add a handle to a slider after it has been initialized. You can change the values (either by changing the values option or through the values() method), but if you add any values to the slider it won't reflect that with a corresponding handle.

The reason for this (again, as best as I can tell) is because all of the creation/event hooking-up of the handles occurs in the _init method of the slider (and therefore the only way to "add handles" currently is to destroy/recreate the slider). What would be much nicer (IMHO) is if this creation/event hooking-up was refactored in to a separate method, which could then be called both by _init and by some sort of new addHandle() method.

Attachments (0)
Change History (5)

Changed August 13, 2009 04:51PM UTC by machineghost comment:1

I am currently working on a fix for this issue in my local copy. If this issue is accepted by the maintainers I will be happy to submit a patch once I've completed work on it.

Changed November 17, 2009 03:44PM UTC by jzaefferer comment:2

milestone: TBD1.8

Changed October 11, 2012 02:53PM UTC by scottgonzalez comment:3

milestone: 1.9.01.11.0

Changed October 15, 2012 08:04PM UTC by tj.vantoll comment:4

status: newopen

Changed June 24, 2014 11:55PM UTC by scottgonzalez comment:5

milestone: 1.11.0none