27 Dec 2012 11:30 PM #1
Unanswered: more than one instances of Controller
I have created a custom component which takes a json and creates a view.that component is a controller which I export and import as a behavior in toolbox.
I want to use that Custom component more than once in my view but controller is a singleton class then is there any way to create multiple instances of my view?
31 Dec 2012 7:07 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
You just need to rethink how you are doing it. A controller can only be created once but views can be created multiple times.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 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.
8 Jan 2013 11:23 PM #3
I know I can create my custom component as view but there are some more things which I want to do while creating a comp like I want to create store and model dynamically for that view which I can achieve using controller.