Advertisement
Guest User

Untitled

a guest
Jul 12th, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Ext.define('VE.view.menu.Menu', {
  2.     extend: 'Ext.button.Split',
  3.     alias: 'widget.menup',
  4.     text: 'Options',
  5.  
  6.    
  7.     // display a dropdown menu:
  8.     initComponent: function() {    
  9.         this.items =
  10.         [
  11.             {
  12.                 menu: new Ext.menu.Menu({
  13.                     xtype: 'menu',
  14.                     width: 120,
  15.                     items: [
  16.                             {
  17.                                 xtype: 'menuitem',
  18.                                 text: 'Menu Item'
  19.                             },
  20.                             {
  21.                                 xtype: 'menuitem',
  22.                                 text: 'Menu Item'
  23.                             },
  24.                             {
  25.                                 xtype: 'menuitem',
  26.                                 text: 'Menu Item'
  27.                             }
  28.                         ]
  29.                 })
  30.             }
  31.         ];
  32.     }
  33.  
  34. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement