-
17 Sep 2012 11:59 PM #1
'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:
Well, this doesn't work, any suggestions how to fix this ?Code:..... ref: { logoutButtons: 'button[class~="logout"]' // should match both buttons }, control: { logoutButtons: { tap: 'onLogout' } } ....
Thanks
Luca
-
18 Sep 2012 1:24 AM #2
you can do below
Code:refs: { logoutButton:{ selector: '[cls="logout"]' } }, control: { logoutButton:{ tap: 'onLogoutTap' } }
-
18 Sep 2012 1:48 AM #3


Reply With Quote