Skip to content

Instantly share code, notes, and snippets.

@jensechu
Created September 16, 2011 16:06
Show Gist options
  • Save jensechu/1222448 to your computer and use it in GitHub Desktop.
Save jensechu/1222448 to your computer and use it in GitHub Desktop.
// A shared object containing all the values you want shared between your tooltips
var shared = {
position: {
my: 'top left',
at: 'bottom right',
},
show: 'click'
hide: 'click',
style {
tip: true
}
});
// Setup our first tooltip, adding some other options
$('.selector').qtip( $.extend({}, shared, {
content: 'An example tooltip',
style: {
classes: 'ui-tooltip-red'
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment