0

sencha touch 2pr4では、(xtype:numberfield)と同じ番号のみを受け入れる入力(xtype:passwordfield)のプロパティを設定することは可能ですか?

したがって、PINフィールドに入力する必要があるたびにキーパッドが英字に設定されることはありません。

入力例

    {
xtype: 'fieldset',
defaults: {
    margin: '0 3 0 3'
    },
layout: 'hbox',
items: [
    {
    xtype: 'passwordfield', 
    maxLength: 1,
    name : 'pin1',
    useClearIcon: false,
    autoCapitalize : false,
    flex: 1,
    index: 1
    }]
}

sencha-touch.jsを変更しますか?

Ext.define('Ext.field.Password', {
    extend: 'Ext.field.Text',
    alias : 'widget.passwordfield',
    alternateClassName: 'Ext.form.Password',

    config: {
        // @inherit
        autoCapitalize: false,

        // @inherit
        component: {
            type: 'password' // is there alternative ? 

              // changing field onFocus to type:number and back to star* character ?
        }
    }});
4

1 に答える 1

0

通常のテキストまたはパスフィールドを拡張して数字キーボードを取得できるようです。senchaフォーラムで提供されているこのソリューションをご覧ください:http ://www.sencha.com/forum/showthread.php?152639-Trigger-テンキー-iOS-Androidの場合のみ

于 2012-02-10T15:52:58.880 に答える