Onclick/Click function in Touch UI by client Lib | Community
Skip to main content
ebin_Aby
Level 2
August 1, 2017
Solved

Onclick/Click function in Touch UI by client Lib

  • August 1, 2017
  • 1 reply
  • 1948 views

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();

}

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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!

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
August 1, 2017

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!