Line | |
---|
1 | /*! |
---|
2 | * Ext JS Library 3.0.0 |
---|
3 | * Copyright(c) 2006-2009 Ext JS, LLC |
---|
4 | * licensing@extjs.com |
---|
5 | * http://www.extjs.com/license |
---|
6 | */ |
---|
7 | Ext.onReady(function(){ |
---|
8 | Ext.Direct.addProvider(Ext.app.REMOTING_API); |
---|
9 | |
---|
10 | var tree = new Ext.tree.TreePanel({ |
---|
11 | width: 400, |
---|
12 | height: 400, |
---|
13 | autoScroll: true, |
---|
14 | renderTo: document.body, |
---|
15 | root: { |
---|
16 | id: 'root', |
---|
17 | text: 'Root' |
---|
18 | }, |
---|
19 | loader: new Ext.tree.TreeLoader({ |
---|
20 | directFn: TestAction.getTree |
---|
21 | }), |
---|
22 | fbar: [{ |
---|
23 | text: 'Reload root', |
---|
24 | handler: function(){ |
---|
25 | tree.getRootNode().reload(); |
---|
26 | } |
---|
27 | }] |
---|
28 | }); |
---|
29 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.