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.
how can use onclick /click function in Touch UI by client Lib in AEM6.1
Inline script is working but want to move the js into clientlibs .
Please let me know if it is working with AEM6.3 too.
Code:
HTL
<button onclick="closeDialog()">X</button>
JS Client lib
function closeDialog() {
alert();
}
Solved! Go to Solution.
See this article - it will show you how you can use JS script in an HTL component:
Scott's Digital Community: Creating an AEM HTL component that uses JavaScript
Using this approach - you can tie in JS logic into a front end HTL component!
View solution in original post
Views
Likes
Replies