basememara
1 Dec 2011, 6:26 AM
I am noticing more and more differences between the Touch and Ext JS 4 MVC conventions. Why in a Touch app must I put everything under 'config' or else it does not work?
Ext.define('MyApp.view.Viewport', { extend: 'Ext.Panel',
config: {
fullscreen: true,
layout: 'fit',
items: [
{
xtype: 'panel',
layout: {
type: 'card',
align: 'stretch'
},
items: [
{
xtype: 'somelist'
}
]
}
]
}
});
It is a bit unintuitive that I must put everything in the config because this is not the way it is done in non-MVC or even in the Ext JS 4 MVC way. Is this going to change in the Touch release, or is this intentional?
Ext.define('MyApp.view.Viewport', { extend: 'Ext.Panel',
config: {
fullscreen: true,
layout: 'fit',
items: [
{
xtype: 'panel',
layout: {
type: 'card',
align: 'stretch'
},
items: [
{
xtype: 'somelist'
}
]
}
]
}
});
It is a bit unintuitive that I must put everything in the config because this is not the way it is done in non-MVC or even in the Ext JS 4 MVC way. Is this going to change in the Touch release, or is this intentional?