Results 1 to 2 of 2

Thread: tap event on textfield

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    130
    Answers
    4

    Default tap event on textfield

    I can add tap event to textfield like this:

    Code:
    {
        xtype         : 'textfield',
        name          : 'GIVEN_NAME',
        label         : 'Given Name',
        disabled: false,
        listeners : {
            element : 'element',
            tap : function() {
                console.log('tap');
            }
        }
    }
    and it works. But this one, when used in controller, doesn't work:

    Code:
    control: {
        givenName: {
            element : 'element',
            tap: 'onGivenNameTap'
        }
    }
    Why?

  2. #2
    Sencha User
    Join Date
    Oct 2013
    Location
    Torres, Rio Grande do Sul, Brasil
    Posts
    6
    Answers
    1

    Default

    According to the documentation does not exist Tap method in the textfield.
    Try Focus

Similar Threads

  1. Tap event on textField
    By JackThor in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 18 Feb 2013, 4:17 PM
  2. How to get value from TextField, before blur event
    By sundoggie in forum Community Discussion
    Replies: 1
    Last Post: 17 Jul 2012, 5:18 PM
  3. about textfield keypress event
    By peacock in forum Ext 2.x: Help & Discussion
    Replies: 12
    Last Post: 6 Jan 2011, 5:03 AM
  4. TextField Event
    By Flcn in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 18 Jun 2010, 5:42 AM
  5. Where is the event handler for Ctrl + Z keyboard event in the textfield?
    By duc-cuong in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 23 Nov 2009, 10:01 AM

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
  •