PDA

View Full Version : tap listener on List



samuelp
11 Dec 2013, 5:07 PM
Hi,
I have the following code that I use to handle tap events on a dom element inside a List. This code works fine if I include this in an override class in Architect.



xtype: 'list',
listeners: {
tap: {
fn: function(event, target) {
console.log (target.id + ' was tapped.');
},
element: 'element',
delegate: '.myclass1',
}}}




I would like to avoid using the override class, and see if it possible to define this using standard event binding mechanism in Architect. I tried adding Event Binding on the list, but I haven't been able to achieve the above. Any suggestions?


Thanks,
Sam