20 Feb 2012 9:39 AM #1
Unanswered: Initializing components inside constructors
Here's my code of an test app which doesn't work as expected.
What am I doing here is creating components inside component's constructor and adding them to the component. I am doing this because I don't like to assign every component a xtype and solely want to use Ext.create function for this purpose. What am I doing wrong here?
20 Feb 2012 10:11 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
You should use the config object more. If you create a new class I would highly suggest giving it an xtype as ComponentQuery can be used to resolve it.Mitchell Simoens @LikelyMitch
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.
20 Feb 2012 1:31 PM #3