Closed (fixed)
Project:
qTip (Stylish jQuery Tooltips)
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Mar 2011 at 13:43 UTC
Updated:
3 Nov 2011 at 12:04 UTC
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
Comment #1
smoothify commented+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.
Comment #2
hashmap commentedYour 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:
Comment #3
jpdaut commentedIs 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?