Expand my Community achievements bar.

how to use listener in Touch UI?

Avatar

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?

3 Replies

Avatar

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

Avatar

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