1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    38
    Answers
    1
    Vote Rating
    3
    panbayi is on a distinguished road

      0  

    Default Answered: ExtJS 4.1 MVC detect splitbutton's menu's 'click' event

    Answered: ExtJS 4.1 MVC detect splitbutton's menu's 'click' event


    How can I detect the 'click' event of a splitbutton's menu in a controller?
    For example,I have splitbutton
    Code:
    {
      xtype : 'splitbutton',
      icon-Cls: 'mycls',
      text: 'mysplitbutton',
      menu : {
        items : [ 
          {text : 'button A',action : 'A'},
          {text : 'button B',action : 'B'}
        ]
      }
    }
    I cannot detect the button A or button B in controller like this
    Code:
    ....some code....
    init : function(){
      this.control({
         'button[action=A]' : {
           click : this.myFucntionToButtonA
          }
      });
    }

  2. Eh....,it's solves.I should have added 'xtype : "button" 'in each item property.

  3. #2
    Sencha User
    Join Date
    Dec 2012
    Posts
    38
    Answers
    1
    Vote Rating
    3
    panbayi is on a distinguished road

      0  

    Default


    Eh....,it's solves.I should have added 'xtype : "button" 'in each item property.

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..." hd porno faketaxi