Xen Tooltip

Retricide

Member
How do you use the Xenforo Tooltip? I can't find any documentation on it anywhere.

Is it like the jQuery tooltip?

Any help is much appreciated,
- Eric
 

James

Well-known member
You apply a class of Tooltip and a title attribute containing the text to be shown in the tooltip.
 

Retricide

Member
Oh, so the problem is that I'm adding tooltips to elements that are added after the page loads, via AJAX.

So, to get the tooltip to work, I need to call $("[title]).tooltip(); manually after each element is added to get the tooltip to bind to the element.

However, because I'm calling it manually, I guess the xenforo style isn't being applied to the tooltip. Any idea how to fix this?
 
Top