6 Aug 2013 5:31 PM #1
Unanswered: Decoupling view elements from controllers - Any help?
Reading this nice post about decoupling view elements from controllers, I faced off with the following issue in ExtJS 4.
In ExtJS we have no this.control(...); method in the views (or container/panel elements). We only can set the control handlers in the controllers.
Do you know if there's another config setting to handle the control of an element reference without using any other 3rd party fmk?
Thanks in advance,
11 Aug 2013 4:12 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
You can use the on method or the listeners config to target element events in a view.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.