jQuery MiniUI
标题:
outlookmenu 加载后所有的菜单都是展开的?
[打印本页]
作者:
linda931
时间:
2014-9-19 16:25:09
标题:
outlookmenu 加载后所有的菜单都是展开的?
outlookmenu 加载后所有的菜单都是展开的 ? 我只是想展开第一个模块,其他的点击后才能展开。
<div id="layout1" class="mini-layout" style="width: 100%; height: 100%;">
<div showheader="true" region="west" width="180" maxwidth="250" minwidth="100">
<div id="leftTree" class="mini-outlookmenu" url="data/outlookmenu.txt"
idfield="id" parentfield="pid" textfield="text" borderstyle="border:0">
</div>
</div>
<div title="center" region="center" bodystyle="overflow:hidden;">
<iframe id="mainframe" frameborder="0" name="main" style="width: 100%; height: 100%;"
border="0"></iframe>
</div>
</div>
<script type="text/javascript">
mini.parse();
//init iframe src
var iframe = document.getElementById("mainframe");
iframe.src = "form.html";
function onItemSelect(e) {
var item = e.item;
iframe.src = item.url;
}
</script>
[
{ id: "user", text: "用户管理", iconCls: "icon-add"},
{ id: "addUser", pid: "user", text: "增加用户", iconCls: "icon-add", url: "form.html" },
{ id: "editUser", pid: "user", text: "修改用户", iconCls: "icon-edit", url: "form.html" },
{ id: "removeUser", pid: "user", text: "删除用户", iconCls: "icon-remove", url: "http://www.miniui.com" },
{ id: "right", text: "权限管理"},
{ id: "addRight", pid: "right", text: "查询权限", iconCls: "Note", url: "form.html", iconPosition: "top" },
{ id: "editRight", pid: "right", text: "操作权限", iconCls: "Reports", url: "form.html", iconPosition: "top" },
{ id: "user1", text: "用户管理1", iconCls: "icon-add"},
{ id: "addUser", pid: "user1", text: "增加用户", iconCls: "icon-add", url: "form.html" },
{ id: "editUser", pid: "user1", text: "修改用户", iconCls: "icon-edit", url: "form.html" },
{ id: "removeUser", pid: "user1", text: "删除用户", iconCls: "icon-remove", url: "http://www.miniui.com" },
{ id: "user2", text: "用户管理2", iconCls: "icon-add"},
{ id: "addUser", pid: "use2r", text: "增加用户", iconCls: "icon-add", url: "form.html" },
{ id: "editUser", pid: "user2", text: "修改用户", iconCls: "icon-edit", url: "form.html" },
{ id: "removeUser", pid: "user2", text: "删除用户", iconCls: "icon-remove", url: "http://www.miniui.com" },
{ id: "user3", text: "用户管理3", iconCls: "icon-add"},
{ id: "addUser", pid: "user3", text: "增加用户", iconCls: "icon-add", url: "form.html" },
{ id: "editUser", pid: "user3", text: "修改用户", iconCls: "icon-edit", url: "form.html" },
{ id: "removeUser", pid: "user3", text: "删除用户", iconCls: "icon-remove", url: "http://www.miniui.com" }
]
作者:
felt
时间:
2014-9-19 16:31:34
expandOnLoad="false" autoCollapse="true" activeIndex="0"
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2