Results 1 to 5 of 5

Thread: Tap event for Panel?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    34
    Vote Rating
    0
      0  

    Default 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!'); }
            });
        }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •