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.

60 lines
1.4 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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.state.Manager.setProvider(
  9. new Ext.state.SessionProvider({state: Ext.appState}));
  10. var button = Ext.get('show-btn');
  11. button.on('click', function(){
  12. // tabs for the center
  13. var tabs = new Ext.TabPanel({
  14. region: 'center',
  15. margins:'3 3 3 0',
  16. activeTab: 0,
  17. defaults:{autoScroll:true},
  18. items:[{
  19. title: 'Bogus Tab',
  20. html: Ext.example.bogusMarkup
  21. },{
  22. title: 'Another Tab',
  23. html: Ext.example.bogusMarkup
  24. },{
  25. title: 'Closable Tab',
  26. html: Ext.example.bogusMarkup,
  27. closable:true
  28. }]
  29. });
  30. // Panel for the west
  31. var nav = new Ext.Panel({
  32. title: 'Navigation',
  33. region: 'west',
  34. split: true,
  35. width: 200,
  36. collapsible: true,
  37. margins:'3 0 3 3',
  38. cmargins:'3 3 3 3'
  39. });
  40. var win = new Ext.Window({
  41. title: 'Layout Window',
  42. closable:true,
  43. width:600,
  44. height:350,
  45. //border:false,
  46. plain:true,
  47. layout: 'border',
  48. items: [nav, tabs]
  49. });
  50. win.show(this);
  51. });
  52. });