source: trunk/web/addons/job_monarch/lib/extjs/examples/tree/column-tree.js @ 619

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

lib/:

  • added new AJAX dependancies: ExtJS, pChart, Lightbox2
File size: 979 bytes
Line 
1/*
2 * Ext JS Library 2.2.1
3 * Copyright(c) 2006-2009, Ext JS, LLC.
4 * licensing@extjs.com
5 *
6 * http://extjs.com/license
7 */
8
9Ext.onReady(function(){
10    var tree = new Ext.tree.ColumnTree({
11        width: 550,
12        height: 300,
13        rootVisible:false,
14        autoScroll:true,
15        title: 'Example Tasks',
16        renderTo: Ext.getBody(),
17       
18        columns:[{
19            header:'Task',
20            width:330,
21            dataIndex:'task'
22        },{
23            header:'Duration',
24            width:100,
25            dataIndex:'duration'
26        },{
27            header:'Assigned To',
28            width:100,
29            dataIndex:'user'
30        }],
31
32        loader: new Ext.tree.TreeLoader({
33            dataUrl:'column-data.json',
34            uiProviders:{
35                'col': Ext.tree.ColumnNodeUI
36            }
37        }),
38
39        root: new Ext.tree.AsyncTreeNode({
40            text:'Tasks'
41        })
42    });
43});
Note: See TracBrowser for help on using the repository browser.