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: |
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 (6)
Changed 14 years ago by
Attachment: | ui.slider.4389.diff added |
---|
comment:1 Changed 14 years ago by
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
Milestone: | TBD → 1.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
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
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
Resolution: | → worksforme |
---|---|
Status: | new → closed |
This has actually always been available.
Patch showing proposed changes...