1. #1
    Sencha Premium Member Zdeno's Avatar
    Join Date
    Nov 2009
    Location
    Prague
    Posts
    389
    Vote Rating
    17
    Zdeno will become famous soon enough

      0  

    Default Ext.ux.tab.ContextMenu plugin

    Ext.ux.tab.ContextMenu plugin


    Simple plugin for everybody who needs convert from Ext 3 to Ext 4 and miss contextmenu event e.g. for right click on Tab

    Code:
    Ext.define('Ext.ux.tab.ContextMenu', {
        alias : 'plugin.tabcontextmenu',
        mixins : {
            observable : 'Ext.util.Observable'
        },
    
    
        init : function(tabpanel) {
            this.tabPanel = tabpanel;
            this.tabPanel.addEvents('contextmenu');
            this.tabBar = tabpanel.down("tabbar");
    
    
            this.mon(this.tabPanel, {
                scope : this,
                afterlayout : this.onAfterLayout,
                single : true
            });
        },
        
        onAfterLayout : function() {
            this.mon(this.tabBar.el, {
                scope : this,
                contextmenu : this.onContextMenu,
                delegate : 'div.x-tab'
            });
        },
        
        onContextMenu : function(event, target) {
            var me = this,
                tab = me.tabBar.getChildByElement(target);
            
            event.preventDefault();
            this.tabPanel.fireEvent('contextmenu', this.tabPanel, tab, event, target);
        }
    });

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Thank you for sharing.

    Scott.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi