X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..76cb34406ceaf9681a76e13b531d7eafa483ad88:/examples/tree/reorder.js diff --git a/examples/tree/reorder.js b/examples/tree/reorder.js index 03fcaa7c..31d54a3b 100644 --- a/examples/tree/reorder.js +++ b/examples/tree/reorder.js @@ -1,35 +1,32 @@ -/* - * Ext JS Library 2.2.1 - * Copyright(c) 2006-2009, Ext JS, LLC. - * licensing@extjs.com - * - * http://extjs.com/license - */ - +/*! + * Ext JS Library 3.0.0 + * Copyright(c) 2006-2009 Ext JS, LLC + * licensing@extjs.com + * http://www.extjs.com/license + */ Ext.onReady(function(){ // shorthand var Tree = Ext.tree; - + var tree = new Tree.TreePanel({ - el:'tree-div', - useArrows:true, - autoScroll:true, - animate:true, - enableDD:true, + useArrows: true, + autoScroll: true, + animate: true, + enableDD: true, containerScroll: true, - + border: false, // auto create TreeLoader dataUrl: 'get-nodes.php', root: { nodeType: 'async', text: 'Ext JS', - draggable:false, - id:'source' + draggable: false, + id: 'src' } }); // render the tree - tree.render(); + tree.render('tree-div'); tree.getRootNode().expand(); }); \ No newline at end of file