19 Mar 2012 5:49 AM #1
Unanswered: in kitchen sink example how the views are called???
i am taking the reference to kitchen sink and trying to understand the code...
but i am stuck at one point...
i.e. i am unable to understand how the views are called i.e. who is creating them??
19 Mar 2012 10:16 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
app/controller/tablet/Main.js and app.controller/phone/Main.js both extend app/controller/Main.js
In app/controller/Main.js (Kitchensink.controller.Main) it has a route for 'demo/:id' that when executed fires the showViewById. In showViewById it executes the showView method which is in Kitchensink.controller.tablet.Main. In the tablet.Main controller's showView method it executes createView which is in the Kitchensink.controller.Main and that's where the view is actually created.
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 email@example.com
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.
29 Aug 2014 7:35 AM #3