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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar