DaveG wrote:


A global switch/method to turn tooltips on/off, or a method on the jQuery object you used to apply the tooltip?
Either this: $.Tooltip.on(); $.Tooltip.off();
This would be better for me as I then don't have to track all the tips. I simply need a way to turn on/off all tips.
Ok, I'll add that.

Or this:
var tips = $(...).Tooltip();
tips.on();
tips.off();
For my current purpose this wouldn't be as useful. But I could see that people might want to turn off specific tips. Wouldn't this be better handled using jQ selectors like:
> $(...).Tooltip({mode:"off"});
I won't add that until someone really asks for it explicitly.
2]
The bodyHandler callback may already do what you need. I've also implemented an option to transform footnotes into tooltips, linked via anchors. A more specific example of the format you'd prefer would help a lot.
I did notice the bodyHandler in the code. It wasn't clear to me if I could simply omit the title and supply a body:
  $(...).Tooltip({bodyHandler:":body of tip"});

If I can then that should be good for me.

What I'd really like to do is maintain an array of tips, and selectors, and then iterate through that calling Tooltip. I can do that with the syntax above.
No, that won't work. The bodyHandler is supposed to be a callback function that is called whenever a tooltip is to be displayed. On the other hand, it would be easy to check if it is a string and use that as the body.

--
Jörn Zaefferer

http://bassistance.de

Reply via email to