X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/examples/tree/two-trees.js diff --git a/examples/tree/two-trees.js b/examples/tree/two-trees.js index d930dc94..b49decca 100644 --- a/examples/tree/two-trees.js +++ b/examples/tree/two-trees.js @@ -1,6 +1,6 @@ /*! - * Ext JS Library 3.0.0 - * Copyright(c) 2006-2009 Ext JS, LLC + * Ext JS Library 3.1.1 + * Copyright(c) 2006-2010 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ @@ -18,6 +18,8 @@ var TreeTest = function(){ enableDD:true, containerScroll: true, border: false, + width: 250, + height: 300, dropConfig: {appendOnly:true} }); @@ -39,17 +41,19 @@ var TreeTest = function(){ //------------------------------------------------------------- - // YUI tree + // ExtJS tree var tree2 = new Tree.TreePanel({ animate:true, autoScroll:true, //rootVisible: false, loader: new Ext.tree.TreeLoader({ dataUrl:'get-nodes.php', - baseParams: {lib:'yui'} // custom http params + baseParams: {path:'extjs'} // custom http params }), containerScroll: true, border: false, + width: 250, + height: 300, enableDD:true, dropConfig: {appendOnly:true} }); @@ -59,9 +63,9 @@ var TreeTest = function(){ // add the root node var root2 = new Tree.AsyncTreeNode({ - text: 'My Files', + text: 'Extensions', draggable:false, - id:'yui' + id:'ux' }); tree2.setRootNode(root2); tree2.render('tree2');