http://kushagragour.in/lab/hint/
I wish to use this kind of hint style with my UniGui application. I know how to add a CSS style to a component but I just don't know how to add an attribute to an object, in this case it is "data-hint".
How can I do this? "Without" using UniLabel TextConversion interpreted as txtHTML. For instance I just want to
Hello Sir, <span class="hint--bottom" data-hint="Thank you!">hover over me.</span>
I thought something like this would do it. But it seems like it is not applicable.
function added(sender, container, pos, eOpts)
{
sender.setAttribute("data-hint", "Hello");
sender.addCls('hint--bottom');
}