Results 1 to 4 of 4

Thread: How to make a telephone number input

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Location
    Bangladesh
    Posts
    9
    Vote Rating
    0
      0  

    Default Answered: How to make a telephone number input

    In Sencha touch 2 xtype: 'numberfield' creates a input which type is number. I want to create a input field which input type will be tel. How to do it?

    I want a input like
    Code:
    <input class="x-input-el x-form-field x-input-number" type="tel" id="ext-element-56" name="telephone" autocapitalize="on" placeholder="123456789">

  2. Try something like

    Code:
    new Ext.Container({
        fullscreen : true,
        items      : [
            {
                xtype     : 'textfield',
                label     : 'Phone Number',
                component : {
                    type : 'tel'
                }
            }
        ]
    });

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      5  

    Default

    Try something like

    Code:
    new Ext.Container({
        fullscreen : true,
        items      : [
            {
                xtype     : 'textfield',
                label     : 'Phone Number',
                component : {
                    type : 'tel'
                }
            }
        ]
    });
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    79
    Answers
    7
    Vote Rating
    1
      0  

    Default

    I've needed this and just stumbled across it. Thanks for the answer mitchell!!!

  5. #4
    Sencha User
    Join Date
    Apr 2012
    Location
    Bangladesh
    Posts
    9
    Vote Rating
    0
      0  

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
  •