CreativeBulma / bulma-tooltip

Display a tooltip attached to any kind of element, in different position.
MIT License
76 stars 40 forks source link

Using javascript to set multiline data-tooltip #21

Closed mkagenius closed 3 years ago

mkagenius commented 3 years ago

When set using cur_node.setAttribute("data-tooltip", "Multi 
 Line 
 Support");

It becomes Multi 
 Line 
 Support without any multiline.

Understandably this is the expected behavior here; but is there a way to add multiline tooltip via javascript?

mkagenius commented 3 years ago

Fixed by actually not using has-multiline-tooltip and just using this: ur_node.setAttribute("data-tooltip", "Multi \n Line \n Support");

Anti-climatic. ikr