Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to global a style for each qtip method?
24th September, 12:38
Post: #1
How to global a style for each qtip method?
the global setting code:
[php] /* qtip global */
$.fn.qtip.defaults = {
position: {
my: 'bottom left',
at: 'top right'
}
};
[/php]
Is it right? It shows a script error in my testing.

Quote:Webpage error details

Message: Unable to get value of the property 'target': object is null or undefined
Line: 13
Char: 12281
Code: 0
URI: ***/jquery.qtip.min.js

can you tell me how to write a default setting for each qtip method?

'qTip is a good javascript library!',my mum said that:)
Find all posts by this user
Quote this message in a reply
25th September, 13:28
Post: #2
RE: How to global a style for each qtip method?
Extend it:
JS Code
$.extend($.fn.qtip.defaults, {
   position: {
      my: 'bottom left',
      at: 'top left'
   }
});

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Style Update on validation ni8hood 1 981 25th July 11:45
Last Post: Craig
  Style by element class, content by element id teeks 14 5,649 15th November 21:35
Last Post: garbledygook
  qTip Position and Style Adjustments cohlerm 1 1,259 25th August 17:09
Last Post: Craig
  something like style { tip: "auto" } nemoluca 3 1,148 15th April 16:27
Last Post: Craig



User(s) browsing this thread: 1 Guest(s)