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