fabio.policeno
10 Nov 2011, 2:13 PM
Hello, I have my list set:
Ext.define('Touch.view.cliente.List' ,{
extend : 'Ext.List',
alias : 'widget.clientelist',
itemTpl: '{id} {nome}',
store : 'Cliente'
});
By using the application, nothing appears on the screen, no error on the console:
Ext.Loader.setConfig({
enabled: true
});
Ext.application({
name : 'Touch',
appFolder : 'view',
controllers: ['Cliente'],
launch: function() {
Ext.create('Touch.view.cliente.List');
}
});
But it turns out it works:
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.
Ext.define('Touch.view.cliente.List' ,{
extend : 'Ext.List',
alias : 'widget.clientelist',
itemTpl: '{id} {nome}',
store : 'Cliente'
});
By using the application, nothing appears on the screen, no error on the console:
Ext.Loader.setConfig({
enabled: true
});
Ext.application({
name : 'Touch',
appFolder : 'view',
controllers: ['Cliente'],
launch: function() {
Ext.create('Touch.view.cliente.List');
}
});
But it turns out it works:
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.