Sencha Touch Label - does it have a Tap Event?
问题 I'm trying to build a flashcard app with sencha touch 2. I have a label showing the question, which takes up the entire screen, I want it so that when the user taps on the label the answer shows. Does the label have a 'tap' event? It works when I use a button, but not when I use a label. Another way around is if I can get the button to be transparent on top of a label. Any suggestions? 回答1: You can do this : label.element.on({ tap : function(e, t) { ... } }); Hope this helps 回答2: one more way