- 注册时间
- 2013-8-30
- 最后登录
- 2016-12-29
- 阅读权限
- 10
- 积分
- 158
- 精华
- 0
- 帖子
- 28
|
var modules = [
{ name: "iframe", text: "Test", iconCls: "desk-window", title: "", type: "ux.iframewindow", url: "../datagrid/datagrid.html" },
{ name: "simple", text: "Window", iconCls: "desk-window", title: "Window", type: "ux.window" },
{ name: "iframe", text: "IFrame Window", iconCls: "desk-window", title: "", type: "ux.iframewindow", url: "http://www.baidu.com" },
{ name: "grid", text: "Grid Window", iconCls: "desk-window", title: "", type: "ux.gridwindow" },
{ name: "splitter", text: "Splitter Window", iconCls: "desk-window", title: "", type: "ux.splitterwindow" },
{ name: "tabs", text: "Tabs Window", iconCls: "desk-window", title: "", type: "ux.tabswindow" },
{ name: "map", text: "Map Window", iconCls: "desk-window", title: "", type: "ux.mapwindow" },
{ name: "chart", text: "Chart Window", iconCls: "desk-window", title: "", type: "ux.chartwindow" },
{ name: "layout", text: "Layout Window", iconCls: "desk-window", title: "", type: "ux.iframewindow", url: "js/windows/layout.html" }
];
/////////////////////////////////////////////////
//desktop
var desk = new mini.ux.DeskTop();
desk.render(document.body);
//desk.addHTML('<div style="position:absolute;right:10px;top:10px;width:200px;height:200px;background:red;"></div>');
//modules
desk.setModules(modules);
不刷新页面,点按钮 modules 再加上几个 怎么做
|
|