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 ?
}
}});