- 注册时间
- 2013-9-7
- 最后登录
- 2013-9-16
- 阅读权限
- 10
- 积分
- 38
- 精华
- 0
- 帖子
- 11
|
felt 发表于 2013-9-9 10:22
http://www.miniui.com/demo/outlookmenu/outlookmenu.html
看下这个demo,onItemSelect事件写方法了吗。 ...
谢谢,您说的是
<script type="text/javascript">
mini.parse();
//init iframe src
var iframe = document.getElementById("mainframe");
iframe.src = "../datagrid/datagrid.html"
function onItemSelect(e) {
var item = e.item;
iframe.src = item.url;
}
/////////////////////////////////////////////
var data = [
{ id: "user", text: "用户管理", iconCls: "icon-add" },
{ id: "addUser", pid: "user", text: "增加用户", iconCls: "icon-add", url: "../datagrid/celledit.html" },
{ id: "editUser", pid: "user", text: "修改用户", iconCls: "icon-edit", url: "../datagrid/rowedit.html" },
{ id: "removeUser", pid: "user", text: "删除用户", iconCls: "icon-remove", url: "../datagrid/datagrid.html" },
{ id: "right", text: "权限管理" },
{ id: "addRight", pid: "right", text: "查询权限", iconCls: "Note", url: "../tree/detailgrid.html", iconPosition: "top" },
{ id: "editRight", pid: "right", text: "操作权限", iconCls: "Reports", url: "../buttonedit/selectGrid.html", iconPosition: "top" }
];
var tree = mini.get("leftTree");
tree.loadList(data, "id", "pid");
</script>
这个吗? |
|