Naresh Tank
Naresh Tank

Reputation: 1568

How to call controller action on click of html link?

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

Answers (1)

dbrin
dbrin

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

Related Questions