PDA

View Full Version : Panel tool handler config versus click event



bimargulies
3 Aug 2012, 4:25 AM
In Ext.panel.Tool, is there any difference between the handler config and a click handler?

I'd like to keep all my clicky code in my controller, and it would be easier to establish a click handler than to pass across.

scottmartin
4 Aug 2012, 4:25 PM
It is preferred to have it in the controller in MVC .. different methods for different scenarios.



me.control({
'app-list-user button[action=addUser]' : {
click : this.addUser
},
..
});


Scott.