BogusMenuModule.js 776 B

12345678910111213141516171819202122232425262728293031323334
  1. /*!
  2. * Ext JS Library 4.0
  3. * Copyright(c) 2006-2011 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. Ext.define('MyDesktop.BogusMenuModule', {
  8. extend: 'MyDesktop.BogusModule',
  9. init : function() {
  10. this.launcher = {
  11. text: 'More items',
  12. iconCls: 'bogus',
  13. handler: function() {
  14. return false;
  15. },
  16. menu: {
  17. items: []
  18. }
  19. };
  20. for (var i = 0; i < 5; ++i) {
  21. this.launcher.menu.items.push({
  22. text: 'Window '+(++windowIndex),
  23. iconCls:'bogus',
  24. handler : this.createWindow,
  25. scope: this,
  26. windowId: windowIndex
  27. });
  28. }
  29. }
  30. });