enyo / opentip

Opentip is an open source javascript tooltip based on the protoype framework.
http://www.opentip.org
1.25k stars 401 forks source link

Question: Callbacks #48

Open crystalk opened 11 years ago

crystalk commented 11 years ago

Hello,

I have been looking for information on call backs. I have a project that requires a callback for when a tool tip is open or closed. I took a look at the open tooltip website and took a quick look at the code but I did not see anything that looked like a callback that could be captured.

I would need to be able to capture events on both dynamically created tooltips and programmatically created tool tips.

If you are not currently using any type of call back for these events, could the current library be easily extended? The open tip site mentions an array that keeps track of opentips associated with an element, do you think this array would be a good candidate for extending so callbacks could be captured for open/close events?

enyo commented 11 years ago

Hi, I'll look at it Monday and implement callbacks if there isn't a way yet.

ascripter commented 10 years ago

Hi, I'm facing the same problem as crystalk. Is there now a possibility to add callbacks to showing and hiding of opentips? I've also been looking through the code (version 2.4.6), but couldn't find anything.

ikb42 commented 9 years ago

Hi I'm also keen to see a close button click callback.

marcacyr commented 8 years ago

+1 to this