chrisdavies / tlite

A tiny tooltip utility library.
https://chrisdavies.github.io/tlite/
90 stars 19 forks source link

Live dynamic content #20

Closed VigibotDev closed 6 years ago

VigibotDev commented 6 years ago

Hi,

Can I use it to display live changing dynamic data like bandwidth etc... (from my Socket.IO live client ) ?

(no ads) https://www.serveurperso.com/?page=robots

Pascal

chrisdavies commented 6 years ago

Woah. That's a cool site!

You can't do it without hacks. Basically, you'd have to grab the tooltip element and manipulate it directly:

document.querySelector('.tlite-visible').textContent = 'Shazm!';

Or, instead of document, you can use the element that contains the tooltip you want to manipulate.

VigibotDev commented 6 years ago

Thanks, outch I must open another case for touch compatibility (or it's the same to use manual everywhere ???) it need a automatic manual mode for smartphone device and standard for PC.