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.

55 lines
1.8 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. var handleAction = function(action){
  9. Ext.example.msg('<b>Action</b>', 'You clicked "'+action+'"');
  10. };
  11. var p = new Ext.Window({
  12. title: 'Standard',
  13. closable: false,
  14. height:250,
  15. width: 500,
  16. bodyStyle: 'padding:10px',
  17. contentEl: 'content',
  18. autoScroll: true,
  19. tbar: new Ext.Toolbar({
  20. enableOverflow: true,
  21. items: [{
  22. xtype:'splitbutton',
  23. text: 'Menu Button',
  24. iconCls: 'add16',
  25. handler: handleAction.createCallback('Menu Button'),
  26. menu: [{text: 'Menu Item 1', handler: handleAction.createCallback('Menu Item 1')}]
  27. },'-',{
  28. xtype:'splitbutton',
  29. text: 'Cut',
  30. iconCls: 'add16',
  31. handler: handleAction.createCallback('Cut'),
  32. menu: [{text: 'Cut menu', handler: handleAction.createCallback('Cut menu')}]
  33. },{
  34. text: 'Copy',
  35. iconCls: 'add16',
  36. handler: handleAction.createCallback('Copy')
  37. },{
  38. text: 'Paste',
  39. iconCls: 'add16',
  40. menu: [{text: 'Paste menu', handler: handleAction.createCallback('Paste menu')}]
  41. },'-',{
  42. text: 'Format',
  43. iconCls: 'add16',
  44. handler: handleAction.createCallback('Format')
  45. },'->',{
  46. text: 'Right',
  47. iconCls: 'add16',
  48. handler: handleAction.createCallback('Right')
  49. }]
  50. })
  51. });
  52. p.show();
  53. });