You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
685 B
32 lines
685 B
/*!
|
|
* Ext JS Library 3.3.1
|
|
* Copyright(c) 2006-2010 Sencha Inc.
|
|
* licensing@sencha.com
|
|
* http://www.sencha.com/license
|
|
*/
|
|
Ext.onReady(function(){
|
|
// shorthand
|
|
var Tree = Ext.tree;
|
|
|
|
var tree = new Tree.TreePanel({
|
|
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: 'src'
|
|
}
|
|
});
|
|
|
|
// render the tree
|
|
tree.render('tree-div');
|
|
tree.getRootNode().expand();
|
|
});
|