2025-04-30

參考示例:創建樹:本地JSON

          
創建Tree         

沒有設置url。

<ul id="tree3" class="mini-tree" style="width:300px;padding:5px;"
    showTreeIcon="true" textField="text" idField="id" >       
</ul>
         
                   
Javascript設置數據

var tree3 = mini.get("tree3");
tree3.loadData([
    { id: "lists", text: "Lists", expanded: false,
        children: [
            { id: "datagrid", text: "DataGrid" },
            { id: "tree", text: "Tree" },
            { id: "treegrid", text: "TreeGrid " }
        ]
            },
    { id: "layouts", text: "Layouts", expanded: false,
        children: [
            { id: "panel", text: "Panel" },
            { id: "splitter", text: "Splitter" },
            { id: "layout", text: "Layout " }
        ]
    },  www.aiwalls.com
    { id: "navigations", text: "Navigations", expanded: false,
        children: [
            { id: "pager", text: "Pager" },
            { id: "tabs", text: "Tabs" },
            { id: "navbar", text: "NavBar" },
            { id: "menu", text: "Menu" }
        ]
    }
]);

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *