Add data-attributes to component's decorator element
I know we can add id, css classes and choose the decorator element type, however, my requirement is to add data-attributes to decorator element. is there a way to achieve it?
I know we can add id, css classes and choose the decorator element type, however, my requirement is to add data-attributes to decorator element. is there a way to achieve it?
Hi @harish_malineni ,
As per the documentation, you can add any property names on cq:htmlTag node of a component and that will be added to the decoration tag:
A working example:
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.