Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

how to use listener in Touch UI?

amangoyal15
Level 3
Level 3

I want to use listener in touchUi dialog like we do in Touch UI by adding listener node to respective node and write js for an event, I am not getting how to write listeners in touch ui . I saw an example from https://helpx.adobe.com/experience-manager/using/creating-touchui-events.html    but this is globally making listeners active. I want to add listeners to some specific nodes. please assist how can i make it?

0 Replies
smacdonald2008
Level 10
Level 10

that document describes the way events are handled in Touch UI. If you need a lower level - then you can write your own custom types like how we wrote this custom Color picker. 

https://helpx.adobe.com/experience-manager/using/creating-touchui-validate1.html

Its all based on JQuery

smacdonald2008
Level 10
Level 10

Also - i recommend that you watch this Ask the AEM Community Experts session on Touch UI - they cover events there too: 

http://scottsdigitalcommunity.blogspot.ca/2015/04/april-session-of-ask-aem-community.html