1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    55
    Answers
    2
    Vote Rating
    0
    swiji2000 is on a distinguished road

      0  

    Default Unanswered: Get MenuItem Id & Text

    Unanswered: Get MenuItem Id & Text


    Hi,

    How to get menu item id and text [as we defined] when we click that menu item?

    Thanks.

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi swiji2000,
    Try the code given below:

    Code:
    Ext.create('Ext.menu.Menu', {
        width: 100,
        margin: '0 0 10 0',
        floating: false, 
        renderTo: Ext.getBody(), 
        defaults:{
        	listeners:{
        		click : function(menu,item,e){
                         alert(menu.text); // it will display the text of clicked menu item.
                         alert(menu.id); // it will display the id of clicked menu item.
            	}
        	}	
        },
        items: [{
            text: 'New'
            , id: 'newMenuItem'
        },{
            text: 'Save'
            , id: 'saveMenuItem'
        }]
    });
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    55
    Answers
    2
    Vote Rating
    0
    swiji2000 is on a distinguished road

      0  

    Default


    Thanks, its working fine.

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