source: trunk/web/addons/job_monarch/lib/extjs-30/examples/direct/direct-tree.js @ 625

Last change on this file since 625 was 625, checked in by ramonb, 15 years ago

lib/extjs-30:

  • new ExtJS 3.0
File size: 699 bytes
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 */
7Ext.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.