bweiler
4 Dec 2011, 9:51 AM
I've been trying to figure out the twitter example and I am having trouble understanding how some of the pieces fit together. Here are my questions:
From Search.js:
refs: [
{
ref : 'main',
selector : 'mainview',
xtype : 'mainview',
autoCreate: true
},
* The selector and xtype are not explicitly defined in the Main.js container (aka. viewport). How is the selector in refs or xtype in refs used to identify the 'Twitter.view.Main' container?
* Why are selector and xtype both specified? Isn't only one of them needed?
* Is the alias property (widgets) of Containers used by refs in any way?
* If autoCreateViewport is used in the app definition, will autoCreate automatically put the mainview panel in the viewport?
Thanks,
Bruce
From Search.js:
refs: [
{
ref : 'main',
selector : 'mainview',
xtype : 'mainview',
autoCreate: true
},
* The selector and xtype are not explicitly defined in the Main.js container (aka. viewport). How is the selector in refs or xtype in refs used to identify the 'Twitter.view.Main' container?
* Why are selector and xtype both specified? Isn't only one of them needed?
* Is the alias property (widgets) of Containers used by refs in any way?
* If autoCreateViewport is used in the app definition, will autoCreate automatically put the mainview panel in the viewport?
Thanks,
Bruce