Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
Solved! Go to Solution.
Hi Karthick1356,
Have you tried in this way
<sly data-sly-test.right=${right.value} />
data-off-${right}="${model.value1}"
View solution in original post
Hi @karthick1356 ,
You can use 'data-sly-attribute' HTL block to achieve this. its supports map (key-value), and the key automatically becomes atribute in html mark-up.
Reference -
https://experienceleague.adobe.com/docs/experience-manager-htl/using/htl/block-statements.html?lang=...
https://www.youtube.com/watch?v=LhvSNVagoZk
Views
Likes
Replies