source: trunk/web/addons/job_monarch/lib/extjs-30/examples/tree/column-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: 967 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    var tree = new Ext.ux.tree.ColumnTree({
9        width: 550,
10        height: 300,
11        rootVisible:false,
12        autoScroll:true,
13        title: 'Example Tasks',
14        renderTo: Ext.getBody(),
15
16        columns:[{
17            header:'Task',
18            width:330,
19            dataIndex:'task'
20        },{
21            header:'Duration',
22            width:100,
23            dataIndex:'duration'
24        },{
25            header:'Assigned To',
26            width:100,
27            dataIndex:'user'
28        }],
29
30        loader: new Ext.tree.TreeLoader({
31            dataUrl:'column-data.json',
32            uiProviders:{
33                'col': Ext.ux.tree.ColumnNodeUI
34            }
35        }),
36
37        root: new Ext.tree.AsyncTreeNode({
38            text:'Tasks'
39        })
40    });
41});
Note: See TracBrowser for help on using the repository browser.