如何在standard ExtJS MVC application的視口加載所需文件時應用LoadMask?ExtJS 4.1 MVC:如何在加載時將LoadMask應用於視口?
這樣MVC應用的一個例子是用於app.js
下面的代碼片斷:
Ext.Loader.setConfig({enabled:true});
Ext.application({
requires: [
'Ext.container.Viewport',
],
name: 'APP',
appFolder: 'app',
controllers: [
'Main'
],
launch: function() {
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [
{
xtype: 'main'
}
]
});
}
});
其中上述main
是用於MVC視圖的xtype
,這可能延長一個ExtJS Panel
等
是否一個標準對於這種無處不在的要求存在嗎?
正是我想要的! – 2012-07-10 20:30:56