[size=12.727272033691406px]创建OutlookTree控件,放入Splitter左侧区域,作为功能操作树。
<!--OutlookTree--><div id="leftTree" class="mini-outlooktree" url="../data/outlooktree.txt" onnodeselect="onNodeSelect" textField="text" idField="id" parentField="pid"></div>[size=12.727272033691406px]url从服务端返回JSON格式如下:
[ {id: "user", text: "用户管理"}, {id: "lists", text: "Lists", pid: "user" }, {id: "datagrid", text: "DataGrid", pid: "lists"}, {id: "tree", text: "Tree" , pid: "lists"}, ......][size=12.727272033691406px]通过 "id" 和 "pid" 组成树形结构,在创建OutlookTree时注意设置 "idField" 和 "parentField" 。
[size=12.727272033691406px]请教:
[size=12.727272033691406px] 得到服务器的json格式后,调用mini的哪个方法去渲染前端OutlookTree? 还是需要自己写jquery去解析渲染OutlookTree
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) | Powered by Discuz! X2 |