column-tree.js
上传用户:shuoshiled
上传日期:2018-01-28
资源大小:10124k
文件大小:1k
源码类别:

中间件编程

开发平台:

JavaScript

  1. /*!  * Ext JS Library 3.0.0  * Copyright(c) 2006-2009 Ext JS, LLC  * licensing@extjs.com  * http://www.extjs.com/license  */ Ext.onReady(function(){
  2.     var tree = new Ext.ux.tree.ColumnTree({
  3.         width: 550,
  4.         height: 300,
  5.         rootVisible:false,
  6.         autoScroll:true,
  7.         title: 'Example Tasks',
  8.         renderTo: Ext.getBody(),
  9.         columns:[{
  10.             header:'Task',
  11.             width:330,
  12.             dataIndex:'task'
  13.         },{
  14.             header:'Duration',
  15.             width:100,
  16.             dataIndex:'duration'
  17.         },{
  18.             header:'Assigned To',
  19.             width:100,
  20.             dataIndex:'user'
  21.         }],
  22.         loader: new Ext.tree.TreeLoader({
  23.             dataUrl:'column-data.json',
  24.             uiProviders:{
  25.                 'col': Ext.ux.tree.ColumnNodeUI
  26.             }
  27.         }),
  28.         root: new Ext.tree.AsyncTreeNode({
  29.             text:'Tasks'
  30.         })
  31.     });
  32. });