Results 1 to 4 of 4

Thread: How to make a telephone number input

Threaded View

Previous Post Previous Post   Next Post Next Post
  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'
                }
            }
        ]
    });

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
  •