Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #103819
    edwardsmarkff
    Participant

    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.open();
    myTooltip.setAttribute('data-open-or-closed', 'opened' ) ;
    .
    
    if  ( myTooltip.getAttribute('data-opened-or-closed') == 'closed')
    

     

    #103822

    Hi,

    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!

    Best Regards,
    Svetoslav Borislavov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.