jQuery MiniUI

 找回密码
 立即注册
查看: 2135|回复: 2
打印 上一主题 下一主题

得到 [复制链接]

Rank: 2

跳转到指定楼层
楼主
发表于 2014-2-28 14:32:01 |只看该作者 |倒序浏览
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 再加上几个 怎么做

Rank: 9Rank: 9Rank: 9

沙发
发表于 2014-2-28 15:14:26 |只看该作者
desktop目前只能初始加载时设置
你可以研究desktop的js,是跟示例一起开放的

Rank: 2

板凳
发表于 2014-2-28 16:57:46 |只看该作者
niko 发表于 2014-2-28 15:14
desktop目前只能初始加载时设置
你可以研究desktop的js,是跟示例一起开放的

_doUpdateModules 这个用下就可以了。。。。。。。。。。

Archiver|普加软件

GMT+8, 2024-11-17 08:00 , Processed in 1.049915 second(s), 18 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部