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:
711 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 | |
---|
9 | Ext.onReady(function(){ |
---|
10 | // shorthand |
---|
11 | var Tree = Ext.tree; |
---|
12 | |
---|
13 | var tree = new Tree.TreePanel({ |
---|
14 | el:'tree-div', |
---|
15 | useArrows:true, |
---|
16 | autoScroll:true, |
---|
17 | animate:true, |
---|
18 | enableDD:true, |
---|
19 | containerScroll: true, |
---|
20 | |
---|
21 | // auto create TreeLoader |
---|
22 | dataUrl: 'get-nodes.php', |
---|
23 | |
---|
24 | root: { |
---|
25 | nodeType: 'async', |
---|
26 | text: 'Ext JS', |
---|
27 | draggable:false, |
---|
28 | id:'source' |
---|
29 | } |
---|
30 | }); |
---|
31 | |
---|
32 | // render the tree |
---|
33 | tree.render(); |
---|
34 | tree.getRootNode().expand(); |
---|
35 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.