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.

29 lines
678 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. Ext.Direct.addProvider(Ext.app.REMOTING_API);
  9. var tree = new Ext.tree.TreePanel({
  10. width: 400,
  11. height: 400,
  12. autoScroll: true,
  13. renderTo: document.body,
  14. root: {
  15. id: 'root',
  16. text: 'Root'
  17. },
  18. loader: new Ext.tree.TreeLoader({
  19. directFn: TestAction.getTree
  20. }),
  21. fbar: [{
  22. text: 'Reload root',
  23. handler: function(){
  24. tree.getRootNode().reload();
  25. }
  26. }]
  27. });
  28. });