Reputation: 1568
I add panel with item "html" and <a>
tag in this html now I want to call controller action on click of this <a>
,how can I figure out this problem?
Thanks in advnced..
Upvotes: 2
Views: 2230
Reputation: 15673
Ext.define('mypanel',{
extend:'Ext.panel.panel',
listeners:{
body:{
click:function(){ console.log('link clicked') },
delegate:'a'
}
});
more info here: http://www.sencha.com/blog/event-delegation-in-sencha-touch
Upvotes: 8