1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Xen Tooltip

Discussion in 'XenForo Development Discussions' started by Retricide, Jul 18, 2013.

  1. Retricide

    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
  2. Jeremy

    Jeremy Well-Known Member

  3. Retricide

    Retricide Member

  4. James

    James Well-Known Member

    You apply a class of Tooltip and a title attribute containing the text to be shown in the tooltip.
    Chris D likes this.
  5. Retricide

    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?

Share This Page