1. #1
    Sencha User
    Join Date
    Aug 2012
    Location
    Pune, India
    Posts
    78
    Answers
    5
    Vote Rating
    0
    Pravin.Pawar is on a distinguished road

      0  

    Default Answered: Showing popup menu on onmouseover

    Answered: Showing popup menu on onmouseover


    Hi,

    I have to populate ExtJS menu on onmouseover of div control. Please let me know how can if you have any idea.

    Regards, Pravin

  2. Add listener to div mouseenter event.
    html:
    Code:
    ​<div id="test">Test</div>​​​​​​​​​​​​​​​​​​​​​​​​​​​
    js:
    Code:
    Ext.onReady(function() {
        var menu = Ext.create('Ext.menu.Menu', {
            floating: true,
            items: [{
                text: 'regular item 1'},
            {
                text: 'regular item 2'},
            {
                text: 'regular item 3'}]
        });
    
        var div = Ext.get('test');
        div.on('mouseenter', function(e) {
            menu.showAt(e.getXY());
        });
        console.log(div);
    });​
    live: http://jsfiddle.net/6mS9G/1/

  3. #2
    Sencha User
    Join Date
    May 2011
    Location
    Ukraine, Rivne
    Posts
    247
    Answers
    44
    Vote Rating
    42
    redraid has a spectacular aura about redraid has a spectacular aura about redraid has a spectacular aura about

      0  

    Default


    Add listener to div mouseenter event.
    html:
    Code:
    ​<div id="test">Test</div>​​​​​​​​​​​​​​​​​​​​​​​​​​​
    js:
    Code:
    Ext.onReady(function() {
        var menu = Ext.create('Ext.menu.Menu', {
            floating: true,
            items: [{
                text: 'regular item 1'},
            {
                text: 'regular item 2'},
            {
                text: 'regular item 3'}]
        });
    
        var div = Ext.get('test');
        div.on('mouseenter', function(e) {
            menu.showAt(e.getXY());
        });
        console.log(div);
    });​
    live: http://jsfiddle.net/6mS9G/1/

  4. #3
    Sencha User
    Join Date
    Aug 2012
    Location
    Pune, India
    Posts
    78
    Answers
    5
    Vote Rating
    0
    Pravin.Pawar is on a distinguished road

      0  

    Default


    Thanks... nice solution.

    Pravin

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