X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/docs/source/direct-tree.html diff --git a/docs/source/direct-tree.html b/docs/source/direct-tree.html new file mode 100644 index 00000000..712c77f8 --- /dev/null +++ b/docs/source/direct-tree.html @@ -0,0 +1,33 @@ + + + The source code + + + + +
Ext.onReady(function(){
+    Ext.Direct.addProvider(Ext.app.REMOTING_API);
+
+    var tree = new Ext.tree.TreePanel({
+        width: 400,
+        height: 400,
+        autoScroll: true,
+        renderTo: document.body,
+        root: {
+            id: 'root',
+            text: 'Root'
+        },
+        loader: new Ext.tree.TreeLoader({
+            directFn: TestAction.getTree
+        }),
+        fbar: [{
+            text: 'Reload root',
+            handler: function(){
+                tree.getRootNode().reload();
+            }
+        }]
+    });
+});
+
+ + \ No newline at end of file