ext的示例中createWindow
下面是ext的示例中window代碼
想通過xxx.xxx.createWindow 這個方式調用這個方法
求解 謝謝
MyDesktop.GridWindow1 = Ext.extend(Ext.app.Module, {
id:'grid-win111',
init : function(){
this.launcher = {
text: 'Grid Windowzzz',
iconCls:'icon-grid',
handler : this.createWindow,
scope: this
}
},
createWindow : function(){
var desktop = this.app.getDesktop();
var win = desktop.getWindow('grid-win111');
if(!win){
tree =InitTree();
grid =InitGrid();
form =InitForm();
win = desktop.createWindow({
id: 'grid-win111',
title:'Grid Window111zz',
width:740,
height:480,
iconCls: 'icon-grid',
shim:false,
animCollapse:false,
constrainHeader:true,
layout: 'fit',
items:{
layout: 'border',
name:'vp',
items: [
tree, {
region: 'center',
split: true,
border: true,
layout: 'border',
items: [grid, form]
}]
}
});
}
win.maximize();//窗口最大化
win.show();
}
});