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.

40 lines
935 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. var tree = new Ext.ux.tree.ColumnTree({
  9. width: 550,
  10. height: 300,
  11. rootVisible:false,
  12. autoScroll:true,
  13. title: 'Example Tasks',
  14. renderTo: Ext.getBody(),
  15. columns:[{
  16. header:'Task',
  17. width:330,
  18. dataIndex:'task'
  19. },{
  20. header:'Duration',
  21. width:100,
  22. dataIndex:'duration'
  23. },{
  24. header:'Assigned To',
  25. width:100,
  26. dataIndex:'user'
  27. }],
  28. loader: new Ext.tree.TreeLoader({
  29. dataUrl:'column-data.json',
  30. uiProviders:{
  31. 'col': Ext.ux.tree.ColumnNodeUI
  32. }
  33. }),
  34. root: new Ext.tree.AsyncTreeNode({
  35. text:'Tasks'
  36. })
  37. });
  38. });