jstree.html 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>H+ 后台主题UI框架 - 树形视图</title>
  7. <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
  8. <meta name="description" content="H+是一个完全响应式,基于Bootstrap3最新版本开发的扁平化主题,她采用了主流的左右两栏式布局,使用了Html5+CSS3等现代技术">
  9. <link rel="shortcut icon" href="favicon.ico"> <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
  10. <link href="../css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
  11. <link href="../css/plugins/jsTree/style.min.css" rel="stylesheet">
  12. <link href="../css/animate.min.css" rel="stylesheet">
  13. <link href="../css/style.min.css?v=4.1.0" rel="stylesheet">
  14. </head>
  15. <body class="gray-bg">
  16. <div class="wrapper wrapper-content animated fadeInRight">
  17. <div class="row">
  18. <div class="col-sm-12">
  19. <div class="ibox float-e-margins">
  20. <div class="ibox-content">
  21. <strong>jsTree</strong>是一个基于jQuery的Tree控件。支持 XML,JSON,Html三种数据源。提供创建,重命名,移动,删除,拖放节点操作。可以自己自定义创建,删除,嵌套,重命名,选择节点的规则。在这些操作上可以添加多种监听事件。
  22. <br>更多信息请访问: <a href="http://www.jstree.com/" target="_blank">http://www.jstree.com/</a>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="row">
  28. <div class="col-sm-6">
  29. <div class="ibox float-e-margins">
  30. <div class="ibox-title">
  31. <h5>基本示例 <small>使用Font Awesome图标</small></h5>
  32. <div class="ibox-tools">
  33. <a class="collapse-link">
  34. <i class="fa fa-chevron-up"></i>
  35. </a>
  36. <a class="close-link">
  37. <i class="fa fa-times"></i>
  38. </a>
  39. </div>
  40. </div>
  41. <div class="ibox-content">
  42. <div id="jstree1">
  43. <ul>
  44. <li class="jstree-open">H+主题
  45. <ul>
  46. <li>css
  47. <ul>
  48. <li data-jstree='{"type":"css"}'>animate.css</li>
  49. <li data-jstree='{"type":"css"}'>bootstrap.css</li>
  50. <li data-jstree='{"type":"css"}'>style.css</li>
  51. </ul>
  52. </li>
  53. <li>email-templates
  54. <ul>
  55. <li data-jstree='{"type":"html"}'>action.html</li>
  56. <li data-jstree='{"type":"html"}'>alert.html</li>
  57. <li data-jstree='{"type":"html"}'>billing.html</li>
  58. </ul>
  59. </li>
  60. <li>fonts
  61. <ul>
  62. <li data-jstree='{"type":"svg"}'>glyphicons-halflings-regular.eot</li>
  63. <li data-jstree='{"type":"svg"}'>glyphicons-halflings-regular.svg</li>
  64. <li data-jstree='{"type":"svg"}'>glyphicons-halflings-regular.ttf</li>
  65. <li data-jstree='{"type":"svg"}'>glyphicons-halflings-regular.woff</li>
  66. </ul>
  67. </li>
  68. <li class="jstree-open">img
  69. <ul>
  70. <li data-jstree='{"type":"img"}'>profile_small.jpg</li>
  71. <li data-jstree='{"type":"img"}'>angular_logo.png</li>
  72. <li class="text-navy" data-jstree='{"type":"img"}'>html_logo.png</li>
  73. <li class="text-navy" data-jstree='{"type":"img"}'>mvc_logo.png</li>
  74. </ul>
  75. </li>
  76. <li class="jstree-open">js
  77. <ul>
  78. <li data-jstree='{"type":"js"}'>hplus.js</li>
  79. <li data-jstree='{"type":"js"}'>bootstrap.js</li>
  80. <li data-jstree='{"type":"js"}'>jquery-2.1.1.js</li>
  81. <li data-jstree='{"type":"js"}'>jquery-ui.custom.min.js</li>
  82. <li class="text-navy" data-jstree='{"type":"js"}'>jquery-ui-1.10.4.min.js</li>
  83. </ul>
  84. </li>
  85. <li data-jstree='{"type":"html"}'>affix.html</li>
  86. <li data-jstree='{"type":"html"}'>dashboard.html</li>
  87. <li data-jstree='{"type":"html"}'>buttons.html</li>
  88. <li data-jstree='{"type":"html"}'>calendar.html</li>
  89. <li data-jstree='{"type":"html"}'>contacts.html</li>
  90. <li data-jstree='{"type":"html"}'>css_animation.html</li>
  91. <li class="text-navy" data-jstree='{"type":"html"}'>flot_chart.html</li>
  92. <li class="text-navy" data-jstree='{"type":"html"}'>google_maps.html</li>
  93. <li data-jstree='{"type":"html"}'>icons.html</li>
  94. <li data-jstree='{"type":"html"}'>inboice.html</li>
  95. <li data-jstree='{"type":"html"}'>login.html</li>
  96. <li data-jstree='{"type":"html"}'>mailbox.html</li>
  97. <li data-jstree='{"type":"html"}'>profile.html</li>
  98. <li class="text-navy" data-jstree='{"type":"html"}'>register.html</li>
  99. <li data-jstree='{"type":"html"}'>timeline.html</li>
  100. <li data-jstree='{"type":"html"}'>video.html</li>
  101. <li data-jstree='{"type":"html"}'>widgets.html</li>
  102. </ul>
  103. </li>
  104. </ul>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="col-sm-6">
  110. <div class="ibox float-e-margins">
  111. <div class="ibox-title">
  112. <h5>JSON示例</h5>
  113. <div class="ibox-tools">
  114. <a class="collapse-link">
  115. <i class="fa fa-chevron-up"></i>
  116. </a>
  117. <a class="close-link">
  118. <i class="fa fa-times"></i>
  119. </a>
  120. </div>
  121. </div>
  122. <div class="ibox-content">
  123. <div id="using_json"></div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <script src="../js/jquery.min.js?v=2.1.4"></script>
  130. <script src="../js/bootstrap.min.js?v=3.3.6"></script>
  131. <script src="../js/content.min.js?v=1.0.0"></script>
  132. <script src="../js/plugins/jsTree/jstree.min.js"></script>
  133. <style>
  134. .jstree-open>.jstree-anchor>.fa-folder:before{content:"\f07c"}.jstree-default .jstree-icon.none{width:0}
  135. </style>
  136. <script>
  137. $(document).ready(function(){$("#jstree1").jstree({"core":{"check_callback":true},"plugins":["types","dnd"],"types":{"default":{"icon":"fa fa-folder"},"html":{"icon":"fa fa-file-code-o"},"svg":{"icon":"fa fa-file-picture-o"},"css":{"icon":"fa fa-file-code-o"},"img":{"icon":"fa fa-file-image-o"},"js":{"icon":"fa fa-file-text-o"}}});$("#using_json").jstree({"core":{"data":["Empty Folder",{"text":"Resources","state":{"opened":true},"children":[{"text":"css","children":[{"text":"animate.css","icon":"none"},{"text":"bootstrap.css","icon":"none"},{"text":"main.css","icon":"none"},{"text":"style.css","icon":"none"}],"state":{"opened":true}},{"text":"js","children":[{"text":"bootstrap.js","icon":"none"},{"text":"hplus.min.js","icon":"none"},{"text":"jquery.min.js","icon":"none"},{"text":"jsTree.min.js","icon":"none"},{"text":"custom.min.js","icon":"none"}],"state":{"opened":true}},{"text":"html","children":[{"text":"layout.html","icon":"none"},{"text":"navigation.html","icon":"none"},{"text":"navbar.html","icon":"none"},{"text":"footer.html","icon":"none"},{"text":"sidebar.html","icon":"none"}],"state":{"opened":true}}]},"Fonts","Images","Scripts","Templates",]}})});
  138. </script>
  139. </body>
  140. </html>