From 602f2fe5c3869bc2dcf8ea3737685f1bea294bc4 Mon Sep 17 00:00:00 2001
From: Jason Frame
$('#example-html').tipsy({html: true });
+ This className
option can be used to add extra CSS classes to generated
+ tooltips:
+
$('#example-custom-class').tipsy({className: 'red'});
+ Try me out +
+ + +Here is the default options declaration:
$.fn.tipsy.defaults = { - delayIn: 0, // delay before showing tooltip (ms) - delayOut: 0, // delay before hiding tooltip (ms) - fade: false, // fade tooltips in/out? - fallback: '', // fallback text to use when no tooltip text - gravity: 'n', // gravity - html: false, // is tooltip content HTML? - live: false, // use live event support? - offset: 0, // pixel offset of tooltip from element - opacity: 0.8, // opacity of tooltip - title: 'title', // attribute/callback containing tooltip text - trigger: 'hover' // how tooltip is triggered - hover | focus | manual + className: null, // custom class to add to tooltip (string or function) + delayIn: 0, // delay before showing tooltip (ms) + delayOut: 0, // delay before hiding tooltip (ms) + fade: false, // fade tooltips in/out? + fallback: '', // fallback text to use when no tooltip text + gravity: 'n', // gravity (string or function) + html: false, // is tooltip content HTML? + live: false, // use live event support? + offset: 0, // pixel offset of tooltip from element + opacity: 0.8, // opacity of tooltip + title: 'title', // attribute/callback containing tooltip text + trigger: 'hover' // how tooltip is triggered - hover | focus | manual };