jQuery MiniUI

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

desktop布局 [复制链接]

Rank: 2

跳转到指定楼层
楼主
发表于 2014-2-25 14:03:34 |只看该作者 |倒序浏览
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: "splitter", text: "Splitter Window", iconCls: "desk-window", title: "", type: "ux.splitterwindow" },
        { 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" }
    ];

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);


放到desk的6个对象,怎么布局的啊 ,3个3个

Rank: 8Rank: 8

沙发
发表于 2014-2-25 14:38:48 |只看该作者
desktop试用包里有完整的源代码的
可以参考源代码来理解

Archiver|普加软件

GMT+8, 2024-11-17 05:09 , Processed in 1.051079 second(s), 9 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部