Skip to content

Instantly share code, notes, and snippets.

@steffenr
Created February 26, 2013 10:31
Show Gist options
  • Save steffenr/5037524 to your computer and use it in GitHub Desktop.
Save steffenr/5037524 to your computer and use it in GitHub Desktop.
Example Configuration for qtip - including custom class on qtip element.
// Example Configuration for qtip - including custom class on qtip element.
// Configure qTip.
$('.qtip-elem').each(function(){
$(this).children('.qtip-ico').qtip({
content: {
text: $(this).children('.qtip-cont').html()
},
show: 'mouseover',
hide: 'mouseout',
style: {
width: 325,
classes: {
tooltip: 'qtip smb_tt',
active: 'smb_tt_active'
}
},
position: {
corner: {
tooltip: 'leftMiddle', // Use the corner...
target: 'rightMiddle' // ...and opposite corner
}
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment