Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
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?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
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:
Ref: https://experienceleague.adobe.com/docs/experience-manager-64/developing/components/decoration-tag.h...
A working example:
View solution in original post
Hi @Fanindra_Surat,
Is there any way to add attributes dynamically via SlingModels or Filters?
Views
Likes
Replies