qTip that stays open
Is it possible to create a tooltip that would stay open, even when mouse isn't hovering underlying element 开发者_如何学编程anymore?
I'm trying to change fixed
to true and in beforeHide
return false. That's not helping.
Make the "hide:" property blank (but you have to list it). For example:
show: 'mousehover',
hide: ''
...
Basically, it's waiting for an event literally named an empty string, which will never happen.
Disclaimer: I haven't tried this on all browsers, but I can vouch for Chrome. If you do a lot of testing, it'd be nice if you share the results!
Documentation for qTip somehow obscure. So basically it has to be called like that:
$(".mydiv").qtip(
api: {
beforeHide: function () {
return false;
}
},
hide: { fixed: true }
);
精彩评论