Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.6 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  4. <title>Drag and Drop between 2 TreePanels</title>
  5. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  6. <!-- GC -->
  7. <!-- LIBS -->
  8. <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
  9. <!-- ENDLIBS -->
  10. <script type="text/javascript" src="../../ext-all.js"></script>
  11. <script type="text/javascript" src="two-trees.js"></script>
  12. <!-- Common Styles for the examples -->
  13. <link rel="stylesheet" type="text/css" href="../shared/examples.css" />
  14. <style type="text/css">
  15. #tree, #tree2 {
  16. float:left;
  17. margin:20px;
  18. border:1px solid #c3daf9;
  19. overflow:auto;
  20. }
  21. .folder .x-tree-node-icon{
  22. background:transparent url(../../resources/images/default/tree/folder.gif);
  23. }
  24. .x-tree-node-expanded .x-tree-node-icon{
  25. background:transparent url(../../resources/images/default/tree/folder-open.gif);
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <script type="text/javascript" src="../shared/examples.js"></script><!-- EXAMPLES -->
  31. <h1>Drag and Drop betweens two TreePanels</h1>
  32. <p>The TreePanels have a TreeSorter applied in "folderSort" mode.</p>
  33. <p>Both TreePanels are in "appendOnly" drop mode since they are sorted.</p>
  34. <p>Drag along the edge of the tree to trigger auto scrolling while performing a drag and drop.</p>
  35. <p>The data for this tree is asynchronously loaded with a JSON TreeLoader.</p>
  36. <p>The js is not minified so it is readable. See <a href="two-trees.js">two-trees.js</a>.</p>
  37. <div id="tree"></div>
  38. <div id="tree2"></div>
  39. </body>
  40. </html>