Web Interface For Lite Argus Control modules
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.

31 lines
685 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. Ext.onReady(function(){
  8. // shorthand
  9. var Tree = Ext.tree;
  10. var tree = new Tree.TreePanel({
  11. useArrows: true,
  12. autoScroll: true,
  13. animate: true,
  14. enableDD: true,
  15. containerScroll: true,
  16. border: false,
  17. // auto create TreeLoader
  18. dataUrl: 'get-nodes.php',
  19. root: {
  20. nodeType: 'async',
  21. text: 'Ext JS',
  22. draggable: false,
  23. id: 'src'
  24. }
  25. });
  26. // render the tree
  27. tree.render('tree-div');
  28. tree.getRootNode().expand();
  29. });