EditBox.InputMode 枚举
输入模式
索引
ANYEMAIL_ADDRNUMERICPHONE_NUMBERURLDECIMALSINGLE_LINE
Details
ANY
用户可以输入任何文本,包括换行符。
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/core/components/editbox/types.js:80 | 
EMAIL_ADDR
允许用户输入一个电子邮件地址。
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/core/components/editbox/types.js:86 | 
NUMERIC
允许用户输入一个整数值。
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/core/components/editbox/types.js:92 | 
PHONE_NUMBER
允许用户输入一个电话号码。
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/core/components/editbox/types.js:98 | 
URL
允许用户输入一个 URL。
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/core/components/editbox/types.js:104 | 
DECIMAL
允许用户输入一个实数。
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/core/components/editbox/types.js:110 | 
SINGLE_LINE
除了换行符以外,用户可以输入任何文本。
| meta | description | 
|---|---|
| 类型 | Number | 
| 定义于 | cocos2d/core/components/editbox/types.js:119 |