Results 1 to 3 of 3

Thread: Adding touch listener to container or raw HTML

  1. #1

    Default Adding touch listener to container or raw HTML

    By default, Ext.Container does hot handle tap events, in the eaxmple I am about to implement multiple areas should be tappable. I found one example but it describes Sencha 1.1. Anyone has an idea ?
    I really appreciate your reply.

    Thanks,

  2. #2
    Sencha User
    Join Date
    Feb 2012
    Posts
    5

    Default

    It would be a bit difficult for raw HTML but you can easily control tap from the controller using Ref and Control. You can read it here

  3. #3
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    To listen to tap on an element you need to add a listener:

    Code:
    listeners : {
        element : 'element',
        tap : function(e, t) {...}
    }
    or

    Code:
    comp.element.on('tap', someFn, comp);
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Tags for this Thread

Posting Permissions

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