Opened 13 years ago

Last modified 9 years ago

#4779 open feature

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:


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.

Change History (5)

comment:1 Changed 13 years ago by machineghost

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.

comment:2 Changed 13 years ago by Jörn Zaefferer

Milestone: TBD1.8

comment:3 Changed 10 years ago by Scott González


comment:4 Changed 10 years ago by tj.vantoll

Status: newopen

comment:5 Changed 9 years ago by Scott González

Milestone: 1.11.0none
Note: See TracTickets for help on using tickets.