1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    139
    Vote Rating
    3
    jeanluca is on a distinguished road

      0  

    Default 'ref' buttons by classname (in a controller)

    'ref' buttons by classname (in a controller)


    Hi

    I have two logout buttons (each on a different panels), for which I want to do something when they're tapped. I have added a class value of 'logout' to both of them and the following controller setup:

    Code:
           .....
           ref: {
                 logoutButtons: 'button[class~="logout"]' // should match both buttons
           },
           control: {
                logoutButtons: {
                      tap: 'onLogout'
                }
          }
          ....
    Well, this doesn't work, any suggestions how to fix this ?

    Thanks
    Luca

  2. #2
    Sencha User netresource's Avatar
    Join Date
    Oct 2011
    Posts
    23
    Vote Rating
    0
    netresource is on a distinguished road

      0  

    Default


    you can do below
    Code:
            refs: {
                logoutButton:{
                    selector: '[cls="logout"]'
                }
            },
           control: {
                logoutButton:{
                        tap: 'onLogoutTap'
                }
           }

  3. #3
    Sencha User
    Join Date
    Jun 2010
    Posts
    139
    Vote Rating
    3
    jeanluca is on a distinguished road

      0  

    Default


    check, it works now! Thanks a lot!!

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