-
10 Nov 2011 2:13 PM #1
Application do not get other attributes of the list
Application do not get other attributes of the list
Hello, I have my list set:
By using the application, nothing appears on the screen, no error on the console:Code:Ext.define('Touch.view.cliente.List' ,{ extend : 'Ext.List', alias : 'widget.clientelist', itemTpl: '{id} {nome}', store : 'Cliente' });
But it turns out it works:Code:Ext.Loader.setConfig({ enabled: true }); Ext.application({ name : 'Touch', appFolder : 'view', controllers: ['Cliente'], launch: function() { Ext.create('Touch.view.cliente.List'); } });
Code:Ext.Loader.setConfig({ enabled: true }); Ext.application({ name : 'Touch', appFolder : 'view', controllers: ['Cliente'], launch: function() { Ext.create('Touch.view.cliente.List', { fullscreen: true, itemTpl : '{id} {nome}', store : 'Cliente', }); } });
That is, it includes the class, recognize your name / alias, but does not accept the other properties defined in the list, only if you set that works directly on the launch.
-
11 Nov 2011 4:29 AM #2
Hi Fabio.
This is not a bug.
In Sencha Touch 2 you should include all the additional components configuration inside the Config object like follows:
Hope this helps.Code:Ext.define('Touch.view.cliente.List' ,{ extend : 'Ext.List', alias : 'widget.clientelist', config: { fullscreen: true, itemTpl: '{id} {nome}', store: 'Cliente' } });Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
-
11 Nov 2011 5:12 AM #3
Hm. Now yes. Thank you!
Looks like we can't reproduce the issue or there's a problem in the test case provided.



Reply With Quote