code: function () {
          var me = this;
          
          var menu = new Ext.menu.Menu({
            items: [
              {
                  text: D.t('Remove shortcut'),
                  handler: function() {me.removeShortcut(menu)}
              }
            ]
          });
  
          
          return {
              xtype: 'dataview',
              overItemCls: 'x-view-over',
              trackOver: true,
              itemSelector: me.shortcutItemSelector,
              store: me.shortcuts,
              style: {
                  position: 'absolute'
              },
              x: 0, y: 0,   
              tpl: new Ext.XTemplate(me.shortcutTpl),
              listeners: {
                  itemcontextmenu: function (view, record, el, index, e, eOpts) {                                
                      menu.view = view
                      menu.rec = record
                      menu.showAt(e.getXY());
                      e.stopEvent()
                  }
              }
          };
      }
docs: ------------------------------------------------------ Overrideable configuration creation methods