question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to change content dynamically

See original GitHub issue

What about an easy, direct way to update the tooltip content when we have something dynamic?

tooltipInstance.content(htmlNode | String);
  1. In case of String: we just need to switch with textContent and not innerText. ref: https://kellegous.com/j/2013/02/27/innertext-vs-textcontent/

  2. In case of htmlNode, use .appendChild() and not .innerHTML for security purposes. https://coderwall.com/p/o9ws2g/why-you-should-always-append-dom-elements-using-documentfragments

Opinion?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
Amantelcommented, Dec 11, 2018

Hi! Can we do the same for popper?

1reaction
hekigancommented, Feb 21, 2018

Since the modification got merged, I am going to close this issue. Thanks @victor-cordova for your work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ability to change content dynamically · Issue #342 - GitHub
What about an easy, direct way to update the tooltip content when we have something dynamic? tooltipInstance.content(htmlNode | String); In case of String: ......
Read more >
Dynamic Content Examples & Tactics to Increase CR. Netflix ...
Dynamic content is a web-page or email component that changes. Typically, changes are based on user signals that include in-session behavior, ...
Read more >
Power Up Your Personalization Strategy With Dynamic Content
Dynamic content is content on a webpage, email, or ad that changes based on a user's behavior. [Recommended Read:] Learn More User Behavior...
Read more >
Dynamically change page contents on click - Stack Overflow
The Javascript code looks mostly good, although it does look like it will append another .readMessage as a child of the current ....
Read more >
What is Dynamic Content and How Can You Use it Well?
Dynamic content consists of a personalized web experience based on data. This way, content on websites, e-mails, and other destinations change ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found