Hello,
I'm trying to listen to a tap event but I can't get it working. Here's how my app.js file looks like:
Code:
var panel = Ext.create('Ext.Panel', {
style: 'background-color: green;',
listeners: {
show: function() {
alert('hello');
}
}
});
panel.addListener({
body: {
tap: function() {alert('tap');}
},
scope: this
});
//panel.addListener('tap',
// function() {alert('tap');},
// this,
// {element: 'body'}
//);
Ext.application({
name: 'Test App',
launch: function() {
Ext.Viewport.add(panel);
}
});
The 'show' event works, but the 'tap' event doesn't. Could someone please help me?
Thank you!