Threaded View

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    34
    Vote Rating
    0
    dakamojo is on a distinguished road

      0  

    Default Answered: Tap event for Panel?

    Answered: Tap event for Panel?


    I have an application that has several Panels. Each panel host other components. I want to capture the event when the user touches anywhere in the Panel. In essence each Panel is like a big button.

    How do I do this?

  2. Just add the tap event listeners in the initialize method.

    Code:
        initialize: function() {
            this.element.on({
    		    tap: function() { console.log('tapped!'); }
            });
        }