To learn how to write a Sightly component that uses JavaScript, see this AEM Community article:
https://helpx.adobe.com/experience-manager/using/sightly_js.html
smacdonald2008 wrote...
To learn how to write a Sightly component that uses JavaScript, see this AEM Community article:
https://helpx.adobe.com/experience-manager/using/sightly_js.html
Good read. Thanks for sharing with us.
Views
Replies
Total Likes
Article in nutshell :-
<sly data-sly-use.clientLib=
"/libs/granite/sightly/templates/clientlib.html"
data-sly-call=
"${clientLib.js @ categories='sightly62'}"
data-sly-unwrap/>
Do we have to use "data-sly-unwrap" even if we used "sly" ?
Views
Replies
Total Likes
Nice summary - point of article is you can use JS defined in a client lib when coding Sightly HTML components.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies