Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] using the updateStyle API call
3rd April, 00:03
Post: #1
[Solved] using the updateStyle API call
I've created custom styles called fia_balance and fia_error, and just to experiment with the API, here's the code I am working with.

I set the style to fia_balance when I instantiate qtip, but immediately after, attempt to use the API to change it to fia_error.

Not working as expected. The style remains fia_balance.

JS Code
$('span.fia_tip_trigger').each(function(){
    $(this).qtip({
       style: 'fia_balance',
    });
    $(this).qtip('api').updateStyle('fia_error');
  });


Thanks for the help!
Find all posts by this user
Quote this message in a reply
3rd April, 15:47
Post: #2
RE: using the updateStyle API call
rmckillen, make sure the tooltip is actuall rendered before you attempt to change its style, otherwise this will fail

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
5th April, 17:14
Post: #3
RE: using the updateStyle API call
(3rd April 15:47)Craig Wrote:  rmckillen, make sure the tooltip is actuall rendered before you attempt to change its style, otherwise this will fail

Craig, thanks. I set the prerender option to true and that did the trick.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Position of qTip Modal from call within a tooltip chuuke 1 263 17th January 21:54
Last Post: Craig
  ajax call with dataTable lib hanabadler 0 673 23rd September 03:42
Last Post: hanabadler
  [Solved] How to call javascript function within Qtip? When2Meets2 7 1,129 19th September 16:49
Last Post: Craig
  Ajax call not being made from qtip sz3y1w 1 891 7th September 19:55
Last Post: Craig
  Show api function not working occulens 1 692 27th May 17:10
Last Post: Craig
  [Solved] Cannot access api Chris_Bones 2 563 26th January 15:52
Last Post: Chris_Bones
  [Solved] API: this.elements is undefined SePP 4 1,536 9th December 09:27
Last Post: Yann39
  Hide (api) doesn't work with Tip (triangle) only cheetos 1 866 23rd November 23:33
Last Post: Craig
  Stuck with updateStyle() George 2 617 3rd October 15:28
Last Post: Craig
  Auto width with Ajax Call sisilone 1 1,538 2nd September 12:34
Last Post: Craig



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