Textfield弹出一个仅包含电话键盘/数字的键盘 [英] Textfield to pop out a keyboard which contains the phone keypad/numbers only
本文介绍了Textfield弹出一个仅包含电话键盘/数字的键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经创建了如下文本框:
{
xtype:'textfield',
名称:'电话',
标签:'电话'
}
弹出具有字符和数字的默认键盘。我需要键盘才能显示手机键盘(仅数字)。由于文本框是关于获取用户的电话号码,所以没有任何点显示带有字符的键盘。
解决方案
您可能想尝试使用 numberfield
>
I have created a textfield as follows;
{
xtype:'textfield',
name:'telephone',
label:'Telephone'
}
Instead of popping up the default keyboard which has characters and numbers. I need the keyboard to only display the phone keypad (Only numbers). Since the textfield is about getting the phone number of the user, there's no point displaying a keyboard with characters.
解决方案
You might want to try using numberfield
instead.
这篇关于Textfield弹出一个仅包含电话键盘/数字的键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文