grid

          grid

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            78 Posts :: 0 Stories :: 62 Comments :: 0 Trackbacks
          創建樹:本地JSON
                                  

          參考示例創建樹:本地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 " }
                  ]
              },
              { id: "navigations", text: "Navigations", expanded: false,
                  children: [
                      { id: "pager", text: "Pager" },
                      { id: "tabs", text: "Tabs" },
                      { id: "navbar", text: "NavBar" },
                      { id: "menu", text: "Menu" }
                  ]
              }
          ]);
          
          posted on 2012-11-29 16:18 nikofan 閱讀(1859) 評論(1)  編輯  收藏

          Feedback

          # re: jQuery MiniUI 開發教程 樹形控件 創建樹:本地JSON(三) 2012-11-29 16:32 段啟鋒
          和easyui比起來有什么不同 能不能比較一下   回復  更多評論
            


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 保德县| 沐川县| 天峨县| 团风县| 新竹县| 尖扎县| 阜南县| 武邑县| 永济市| 新平| 天水市| 喜德县| 永春县| 黄骅市| 改则县| 蒙阴县| 新闻| 青州市| 乐至县| 普兰店市| 松潘县| 海伦市| 郑州市| 蚌埠市| 平江县| 普兰店市| 辛集市| 乌兰浩特市| 北京市| 伊吾县| 阳江市| 内黄县| 泉州市| 即墨市| 鄂尔多斯市| 武陟县| 古丈县| 海原县| 嵊州市| 兴城市| 望谟县|