1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    4
    Vote Rating
    0
    shmaltorhbooks is on a distinguished road

      0  

    Default onmouseover tooltips in grid

    onmouseover tooltips in grid


    Hi,
    i adding tooltip to each cell in grid with this code:
    PHP Code:
    {/* come config*/renderer: function(vp){
        
    p.attr "ext:qtip='<a href=http://example.com>link</a>' ext:qtitle='title'"
    }} 
    with option 'ext:hide=false' tooltip not closing on 'mouseover' event, but I need to click somewhere to close tip, and it's uncomfortably

    how can i prevent closing qtip on mouseover, but leave closing on some timeout?
    thanks

  2. #2
    Sencha User
    Join Date
    May 2010
    Posts
    45
    Vote Rating
    0
    diegotdai is on a distinguished road

      0  

    Default


    What you mean tooltip now closing on 'mouseover' event? they should show on mouseover... I'm assuming you want the tooltip to not close on mouseout so the use would have some time to click on the link?

    PHP Code:
    Ext.onReady(function(){
        
    Ext.QuickTips.init();
        
    Ext.apply(Ext.QuickTips.getQuickTip(), {
            
    hideDelay10000 // 10 seconds before hiding tip
        
    });
    }); 

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    4
    Vote Rating
    0
    shmaltorhbooks is on a distinguished road

      0  

    Default


    quicktip shows on 'mouseover' event of some object
    hide by timeout on 'mouseleave' event of that object even if mouse is over quicktip

    how can i prevent quicktip closing if cursor over quicktip?

    sorry for my english

  4. #4
    Sencha User
    Join Date
    May 2010
    Posts
    45
    Vote Rating
    0
    diegotdai is on a distinguished road

      0  

    Default


    closable: true, else you will have to extend it and add the functionality...

  5. #5
    Sencha User
    Join Date
    Nov 2010
    Posts
    4
    Vote Rating
    0
    shmaltorhbooks is on a distinguished road

      0  

    Default


    PHP Code:
    Ext.apply(Ext.QuickTips.getQuickTip(), {
        
    hideDelay100,
        
    trackMousefalse,
        
    listeners: {
            
    'mouseover': function(){
                
    // some code
            
    },
            
    'mouseleave': function(){
                
    // come code
            
    }
        }
    }); 
    and it's not working. can you tell me how exactly i must to extend tooltip, to make it's closable after 50ms, but not closable if mouse over it?

  6. #6
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,572
    Vote Rating
    307
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Something like this might work:

    Code:
    Ext.onReady(function() {
        var tip = Ext.QuickTips.getQuickTip();
    
        tip.dismissDelay = 0;
        tip.hideDelay = 500;
    
        tip.mun(Ext.getDoc(), 'mouseout', tip.onTargetOut, tip);
    
        tip.mon(Ext.getDoc(), 'mouseout', function(ev) {
            if (ev.within(tip.getEl(), true)) {
                tip.clearTimer('hide');
                return;
            }
    
            tip.onTargetOut.call(tip, ev);
        });
    });
    It won't hide the tooltip if you mouseover it but it still has problems. When I tried it on a grid I still had problems clicking on the link in the tooltip because trying to move the cursor from one grid cell to the tooltip passed over other grid cells, updating the tooltip.

Thread Participants: 2

Tags for this Thread

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..."