Opened 14 years ago

Closed 12 years ago

#4389 closed enhancement (worksforme)

slider should pass information about which handle triggered an event

Reported by: vitch Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.slider Version: 1.7.1
Keywords: events Cc:
Blocked by: Blocking:


In my application it is necessary to know which handle was changed to cause a slide or slidechange event. I could figure it out in my code but it seems that it is easy enough to include in the plugin so I'd like to suggest that it is included.

Patch of necessary changes attached...

Attachments (1)

ui.slider.4389.diff (1.6 KB) - added by vitch 14 years ago.
Patch showing proposed changes…

Download all attachments as: .zip

Change History (6)

Changed 14 years ago by vitch

Attachment: ui.slider.4389.diff added

Patch showing proposed changes...

comment:1 Changed 14 years ago by vitch

Just to add that I'm not very familiar with jQuery UI in general yet so if there is a good reason for not including this change (e.g. for consistency or conceptual reasons) then I'm fine to work around it. It just seems useful from my short experience...

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

Milestone: TBD1.8

Proposed enhancement makes sense, as the information isn't easily available in other ways.

Patch needs testing.

comment:3 Changed 14 years ago by machineghost

Stupid question: why not just pass the handle itself?

handle: this.handles[index],

Or pass both the handle and the index?

comment:4 Changed 12 years ago by urkle

This information is passed to the handler in the ui.handle property..

Here is an example using jQuery 1.8.5

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

Resolution: worksforme
Status: newclosed

This has actually always been available.

Note: See TracTickets for help on using tickets.