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

Dynamically change Tooltip Text #36

Open
jschnarel opened this issue Jan 27, 2015 · 1 comment
Open

Dynamically change Tooltip Text #36

jschnarel opened this issue Jan 27, 2015 · 1 comment

Comments

@jschnarel
Copy link

Needing to dynamically change the tool tip on the fly, I added this to my version, 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");

@ruibullseye
Copy link

Hi @jschnarel just a minor correction to your code.
You named the function resetTooltip and you are calling it as resetTitle.

Fix:
$('#objId').data('tooltipsy').resetTooltip("new tooltip text");

Other than that great workaround, hope it gets implemented as i had the problem.

Best Regards,
Rui Duarte

@elwin013 elwin013 mentioned this issue Jan 7, 2016
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