hello, this is a new month, and once again i am finding more and more (and MORE AND MORE) reasons to love smart html elements.😊
question (or request??) is there any way to tell if a tooltip is opened or not? i have found that tooltips can contain MUCH more than mere text!
i am going to try something like this but it seems awkward and very error prone:
myTooltip.setAttribute('data-open-or-closed', 'opened' ) ;
if ( myTooltip.getAttribute('data-opened-or-closed') == 'closed')
The tooltip has got a ‘visible’ property which you can use.
See an example here: https://codepen.io/dkeamcaksoem/pen/gOzZYGX?editors=1011
If you have any additional questions, do not hesitate to contact us!
Smart UI Team