Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to disable a Tooltip #1629

Closed
valerio-bozzolan opened this issue Jun 29, 2015 · 3 comments
Closed

Allow to disable a Tooltip #1629

valerio-bozzolan opened this issue Jun 29, 2015 · 3 comments

Comments

@valerio-bozzolan
Copy link

Is there any method to disable/remove a tooltip programmatically?
(I've not seen any method in the source code to remove them.)

@janpieterz
Copy link

Hi @valerio-bozzolan

This seems to work:

$(".tooltipped").off("mouseenter mouseleave");

Obviously replace .tooltipped with your own (specific) selector.

In case you're in the mood, making a pull request and editing the tooltip.js with a function so that the logic stays within that component will probably be really appreciated (I'm not a maintainer of this library).

@Dogfalo
Copy link
Owner

Dogfalo commented Jul 3, 2015

Added in 30b2e1d

@Dogfalo Dogfalo closed this as completed Jul 3, 2015
@Luis16287
Copy link

Luis16287 commented Nov 14, 2016

$('.tooltipped').tooltip('remove');

see removal section

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants