Threaded View

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Location
    Bangladesh
    Posts
    9
    Vote Rating
    0
    moin_ku07 is on a distinguished road

      0  

    Default Answered: How to make a telephone number input

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