ext的示例中createWindow

didiaodezhu 2010-01-08 05:04:00
下面是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();
}
});
...全文
178 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
hoojo 2010-01-13
  • 打赏
  • 举报
回复
呵呵,想研究就是没有时间哒。有空一起研究啊。
didiaodezhu 2010-01-12
  • 打赏
  • 举报
回复
頂上去 有沒有人研究過ext的desktop 交流交流下

52,797

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ajax
社区管理员
  • Ajax
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧