hello — i cannot determine how to create a template in javascript.
https://codepen.io/edwardsmarkf/pen/dywrRBg
the template created in the example as ordinary HTML works fine (tooltip_1
), but when i attempt to create a new template in javascript (tooltip_2
), it does not work.
i can even toggle this line:
tmpTooltip.setAttribute('tooltip-template', 'newTemplate_2'); // newTemplate_1 works!
so i know everything is working except for the creation of the template.
you can see in the chrome-console that my newly created template is identical to the one that htmlelements created just using ordinary HTML.
please let me know what i have done wrong in my example
thank you very much.