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