Threaded View
-
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


Reply With Quote