Apologies if this has already been posted but...
I'm trying to use the tooltip tool as a callout on my web page. What I would like is my tooltip to open after a delay on my page, and then close a few seconds later.
Looking over the documentation, here are some features which I think would have helped me do this:
- Ability to remove all events. I only want my tooltip to appear/disappear when I say so in my code.
example:
- add a delay to the .show() and .hide() methods. this way I can call the .show(<delay>), and in the .onShow() event I can call the .hide(<delay>) method.
If it's possible to do the above with the existing code, I'd really appreciate some hints.
Thanks in advance!
F.
I'm trying to use the tooltip tool as a callout on my web page. What I would like is my tooltip to open after a delay on my page, and then close a few seconds later.
Looking over the documentation, here are some features which I think would have helped me do this:
- Ability to remove all events. I only want my tooltip to appear/disappear when I say so in my code.
example:
$(<trigger>).tooltip({
events:
{
def: "null,null",
input: "null,null",
widget: "null,null",
tooltip: "null,null"
}
});
- add a delay to the .show() and .hide() methods. this way I can call the .show(<delay>), and in the .onShow() event I can call the .hide(<delay>) method.
var api = $(<trigger>).tooltip(0);
api.show(1000);
api.onShow(function(){
api.hide(1000);
});
If it's possible to do the above with the existing code, I'd really appreciate some hints.
Thanks in advance!
F.
