Expand my Community achievements bar.

Using JavaScript with a Sightly Component

Avatar

Level 10

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

4 Replies

Avatar

Level 9

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.

Avatar

Level 2

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" ?

Avatar

Level 10

Nice summary - point of article is you can use JS defined in a client lib when coding Sightly HTML components. 

Avatar

Level 7

Its not required to use data-sly-unwrap with sly tag.

regards,

Ankur Ahlawat

AEM CQ5 Tutorials