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

OnDemand-Content of tooltip #33

Open
spranger opened this issue Nov 7, 2014 · 1 comment
Open

OnDemand-Content of tooltip #33

spranger opened this issue Nov 7, 2014 · 1 comment

Comments

@spranger
Copy link

spranger commented Nov 7, 2014

I have a List of man Labels I want to "tooltipsy" , and each tooltip get its content via ajax-call.
In the .tooltipsy()-function an ajax-call is made on setup, even if I never need this tooltip.

Is there a way to ajax-load the tooltip-content just on demand?

@jschnarel
Copy link

Also needing to dynamically change the tool tip on the fly, I added this code just above the "show" function:
resetTooltip: function(t) {
this.title = t;
if (this.$tipsy) {
this.$tipsy.remove();
}
this.ready = false;
},

Call it this way:
$('#objId').data('tooltipsy').resetTitle("new tooltip text");

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

2 participants