Search and Top Navigation
#4389 closed enhancement (worksforme)
Opened March 22, 2009 07:56AM UTC
Closed January 05, 2011 02:43PM UTC
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: |
Description
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)
Change History (5)
Changed March 22, 2009 07:58AM UTC by comment:1
Changed May 07, 2009 12:51PM UTC by comment:2
milestone: | TBD → 1.8 |
---|
Proposed enhancement makes sense, as the information isn't easily available in other ways.
Patch needs testing.
Changed August 13, 2009 04:40PM UTC by comment:3
Stupid question: why not just pass the handle itself?
handle: this.handles[index],
Or pass both the handle and the index?
Changed January 05, 2011 02:35PM UTC by comment:4
This information is passed to the handler in the ui.handle property..
Here is an example using jQuery 1.8.5
Changed January 05, 2011 02:43PM UTC by comment:5
resolution: | → worksforme |
---|---|
status: | new → closed |
This has actually always been available.
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...