Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / docs / source / direct-tree.html
diff --git a/docs/source/direct-tree.html b/docs/source/direct-tree.html
new file mode 100644 (file)
index 0000000..712c77f
--- /dev/null
@@ -0,0 +1,33 @@
+<html>\r
+<head>\r
+  <title>The source code</title>\r
+    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
+    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
+</head>\r
+<body  onload="prettyPrint();">\r
+    <pre class="prettyprint lang-js">Ext.onReady(function(){\r
+    Ext.Direct.addProvider(Ext.app.REMOTING_API);\r
+\r
+    var tree = new Ext.tree.TreePanel({\r
+        width: 400,\r
+        height: 400,\r
+        autoScroll: true,\r
+        renderTo: document.body,\r
+        root: {\r
+            id: 'root',\r
+            text: 'Root'\r
+        },\r
+        loader: new Ext.tree.TreeLoader({\r
+            directFn: TestAction.getTree\r
+        }),\r
+        fbar: [{\r
+            text: 'Reload root',\r
+            handler: function(){\r
+                tree.getRootNode().reload();\r
+            }\r
+        }]\r
+    });\r
+});\r
+</pre>    \r
+</body>\r
+</html>
\ No newline at end of file