set aria-label or data-hint attribute value at runtime
ajayadglobal360-AGL opened this issue · comments
how to set aria-label or data-hint attribute value at runtime
It as simple as setting an attribute on an element. For eg. to set data-hint
on an element el
you would do:
el.setAttribute('data-hint', 'Tooltip text');
Similarly for aria-label
:
el.setAttribute('aria-label', 'Tooltip text');
@ajayadglobal360 is this project still active?
@janydrozd Yes, it is :)