Hello, I'm interesting is it possible to set custom setting (position, color...) to tip? Maybe I can add something in this code?

           <span class="qtip-link">
            <span class="qtip-header">Tooltip Heading (optional)</span>
            <span class="qtip-tooltip">Tooltip content</span>
            Link text to tooltip
          </span>

I need this, because some of tips shows on the left side of site, some of them on right. And one position works not good.
Thank you!

Comments

smoothify’s picture

+1 for this feature.

Looking at the code the qtip_init function sets everything from the modules settings.

I would suggest as a first step to split the initialization (adding js files, etc) from the creation of the default qtip style. Then have a separate add function that allows custom settings to be passed in.

hashmap’s picture

Assigned: Unassigned » hashmap
Category: support » feature
Status: Active » Closed (fixed)

Your wish has been granted. Changing the position and color (and more) is now possible using span tags. See the release notes for 7.x-2.x-dev for more info, but here as an example:

<span class="qtip-link">
    <span class="qtip-header">Tooltip Title</span>
    <span class="qtip-tooltip">default text when ajax doesn't load</span>
    <span class="qtip-ajax">/drupal7/sites/default/modules/qtip/examples/ajax_callback.php</span>
    <span class="qtip-title-button">true</span>
    <span class="qtip-speech-bubble">false</span>
    <span class="qtip-tooltip-position">right_center</span>
    <span class="qtip-style-classes">ui-tooltip-red ui-tooltip-rounded ui-tooltip-shadow</span>
    <span class="qtip-show">click</span>
    <span class="qtip-hide">click</span>
    <span>click to see the tooltip</span>
  </span>  
jpdaut’s picture

Is there a way to have finer control over position? I need bottom but not exactly center, off to right by a number of pixels. I have setting to bottom-center, but how to offset from the center by some quantity?