Class Ext.form.VTypes
Package: | Ext.form |
Class: | VTypes |
Extends: | Object |
Defined In: | VTypes.js |
Overrideable validation definitions. The validations provided are basic and intended to be easily customizable and extended.
This class is a singleton and cannot be created directly.
属性
-
方法
-
事件
公共属性
|
alphaMask : RegExp |
VTypes |
The keystroke filter mask to be applied on alpha input |
|
alphaText : String |
VTypes |
The error text to display when the alpha validation function returns false |
|
alphanumMask : RegExp |
VTypes |
The keystroke filter mask to be applied on alphanumeric input |
|
alphanumText : String |
VTypes |
The error text to display when the alphanumeric validation function returns false |
|
emailMask : RegExp |
VTypes |
The keystroke filter mask to be applied on email input |
|
emailText : String |
VTypes |
The error text to display when the email validation function returns false |
|
urlText : String |
VTypes |
The error text to display when the url validation function returns false |
公共方法
|
alpha(String value ) : void |
VTypes |
The function used to validate alpha values |
|
alphanum(String value ) : void |
VTypes |
The function used to validate alphanumeric values |
|
email(String value ) : void |
VTypes |
The function used to validate email addresses |
|
url(String value ) : void |
VTypes |
The function used to validate urls |
公共事件
此类没有公共事件。
属性详情
alphaMask
public RegExp alphaMask
The keystroke filter mask to be applied on alpha input
This property is defined by VTypes.
alphaText
public String alphaText
The error text to display when the alpha validation function returns false
This property is defined by VTypes.
alphanumMask
public RegExp alphanumMask
The keystroke filter mask to be applied on alphanumeric input
This property is defined by VTypes.
alphanumText
public String alphanumText
The error text to display when the alphanumeric validation function returns false
This property is defined by VTypes.
emailMask
public RegExp emailMask
The keystroke filter mask to be applied on email input
This property is defined by VTypes.
emailText
public String emailText
The error text to display when the email validation function returns false
This property is defined by VTypes.
urlText
public String urlText
The error text to display when the url validation function returns false
This property is defined by VTypes.
方法详情
alpha
public function alpha(String value
)
The function used to validate alpha values
This method is defined by VTypes.
alphanum
public function alphanum(String value
)
The function used to validate alphanumeric values
This method is defined by VTypes.
email
public function email(String value
)
The function used to validate email addresses
参数:
value
: StringThe email address
返回:
This method is defined by VTypes.
url
public function url(String value
)
The function used to validate urls
This method is defined by VTypes.