2012-01-31 56 views
0

在煎茶觸摸2pr4號passwordfield財產, 是可以設置一些屬性輸入(的xtype:passwordfield),將接受數字只有一樣(的xtype:numberfield)煎茶觸摸2pr4 - 的xtype:只

所以它不會把鍵盤設置爲字母字符每次你必須填寫即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 
    }] 
} 

修改煎茶,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 ? 
     } 
    }}); 

回答