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