mardi 11 juin 2019

Automatically convert all html `title` attributes to a tooltip with some component [on hold]

In a website I'm working on, anywhere I wanted to add a tooltip, I added a title attribute to the html element. Now, I want to use a library or component to show tooltips. If I decide on what library I will use (which I haven't yet) then I will have to go through all the code, and use that lib for every tooltip I have in website. I want to know, if there is a way to just use a library or component for tooltips in website, and initialize and configure it only once, in a way that it automatically detect every title attribute in the website, and use this attribute's content to show a tooltip for that specific element.




Aucun commentaire:

Enregistrer un commentaire