X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/desktop/BogusMenuModule.js diff --git a/examples/desktop/BogusMenuModule.js b/examples/desktop/BogusMenuModule.js new file mode 100644 index 00000000..3fc5dbec --- /dev/null +++ b/examples/desktop/BogusMenuModule.js @@ -0,0 +1,34 @@ +/*! +* Ext JS Library 4.0 +* Copyright(c) 2006-2011 Sencha Inc. +* licensing@sencha.com +* http://www.sencha.com/license +*/ + +Ext.define('MyDesktop.BogusMenuModule', { + extend: 'MyDesktop.BogusModule', + + init : function() { + + this.launcher = { + text: 'More items', + iconCls: 'bogus', + handler: function() { + return false; + }, + menu: { + items: [] + } + }; + + for (var i = 0; i < 5; ++i) { + this.launcher.menu.items.push({ + text: 'Window '+(++windowIndex), + iconCls:'bogus', + handler : this.createWindow, + scope: this, + windowId: windowIndex + }); + } + } +}); \ No newline at end of file