Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / examples / desktop / BogusMenuModule.js
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
8 Ext.define('MyDesktop.BogusMenuModule', {
9     extend: 'MyDesktop.BogusModule',
10
11     init : function() {
12
13         this.launcher = {
14             text: 'More items',
15             iconCls: 'bogus',
16             handler: function() {
17                 return false;
18             },
19             menu: {
20                 items: []
21             }
22         };
23
24         for (var i = 0; i < 5; ++i) {
25             this.launcher.menu.items.push({
26                 text: 'Window '+(++windowIndex),
27                 iconCls:'bogus',
28                 handler : this.createWindow,
29                 scope: this,
30                 windowId: windowIndex
31             });
32         }
33     }
34 });