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

close button inside tooltip to close tooltip #244

Closed
sachinlogiciel opened this issue Oct 30, 2015 · 3 comments
Closed

close button inside tooltip to close tooltip #244

sachinlogiciel opened this issue Oct 30, 2015 · 3 comments

Comments

@sachinlogiciel
Copy link

i want to create a close button inside tooltip and click on this close current open tooltip. any idea how to do this??

@cartond
Copy link

cartond commented Feb 16, 2016

If you add the following to your options, you can use a little trickery

toolTipClose: ["tooltip-click"],
toolTipContainer: '<div> <u>Close</u><br></div>',

This will cause the user to click the tool-tip, which will in turn close it. The word close actually does nothing. Similarly you could put an 'x' and right align it to the div.

http://jsfiddle.net/sb9j7/5812/
Hover over the dip in the middle to see.

@Gtskk
Copy link

Gtskk commented Feb 17, 2016

Excellent.

@sachinlogiciel
Copy link
Author

Thanks u. It works perfectly.

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

3 participants