X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..05ce1c11e98b33f14ddee184493bd5a60dc947e2:/docs/output/Ext.form.VTypes.html diff --git a/docs/output/Ext.form.VTypes.html b/docs/output/Ext.form.VTypes.html index 066a76b4..dca1df03 100644 --- a/docs/output/Ext.form.VTypes.html +++ b/docs/output/Ext.form.VTypes.html @@ -1,4 +1,4 @@ -
Package: | Ext.form |
Defined In: | VTypes.js |
Class: | VTypes |
Extends: | Object |
This is a singleton object which contains a set of commonly used field validation functions. +
Package: | Ext.form |
Defined In: | VTypes.js |
Class: | VTypes |
Extends: | Object |
This is a singleton object which contains a set of commonly used field validation functions. The validations provided are basic and intended to be easily customizable and extended.
To add custom VTypes specify the vtype
validation
test function, and optionally specify any corresponding error text to display and any keystroke
@@ -24,31 +24,31 @@ Ext.apply(Ext.form.VTypes, {
IPAddressText: 'Must be a numeric IP address',
IPAddressMask: /[\d\.]/i
});
This class is a singleton and cannot be created directly.
Property | Defined By | |
---|---|---|
alphaMask : RegExp The keystroke filter mask to be applied on alpha input. Defaults to:
-/[a-z_]/i | VTypes | |
alphaText : String The error text to display when the alpha validation function returns false. Defaults to:
+/[a-z_]/i | VTypes | |
alphaText : String The error text to display when the alpha validation function returns false. Defaults to:
'This field should only con... The error text to display when the alpha validation function returns false. Defaults to:
'This field should only contain letters and _' | VTypes | |
alphanumMask : RegExp The keystroke filter mask to be applied on alphanumeric input. Defaults to:
-/[a-z0-9_]/i | VTypes | |
alphanumText : String The error text to display when the alphanumeric validation function returns false. Defaults to:
+/[a-z0-9_]/i | VTypes | |
alphanumText : String The error text to display when the alphanumeric validation function returns false. Defaults to:
'This field should o... The error text to display when the alphanumeric validation function returns false. Defaults to:
-'This field should only contain letters, numbers and _' | VTypes | |
emailMask : RegExp The keystroke filter mask to be applied on email input. See the email method for
+'This field should only contain letters, numbers and _' | VTypes | |
emailMask : RegExp The keystroke filter mask to be applied on email input. See the email method for
information about more complex ema... The keystroke filter mask to be applied on email input. See the email method for
information about more complex email validation. Defaults to:
-/[a-z0-9_\.\-@]/i | VTypes | |
emailText : String The error text to display when the email validation function returns false. Defaults to:
+/[a-z0-9_\.\-@]/i | VTypes | |
emailText : String The error text to display when the email validation function returns false. Defaults to:
'This field should be an e-... The error text to display when the email validation function returns false. Defaults to:
-'This field should be an e-mail address in the format "user@example.com"' | VTypes | |
urlText : String The error text to display when the url validation function returns false. Defaults to:
+'This field should be an e-mail address in the format "user@example.com"' | VTypes | |
urlText : String The error text to display when the url validation function returns false. Defaults to:
'This field should be a URL i... The error text to display when the url validation function returns false. Defaults to:
-'This field should be a URL in the format "http:/'+'/www.example.com"' | VTypes |
Method | Defined By | |
---|---|---|
alpha( String value )
- :
- BooleanThe function used to validate alpha values The function used to validate alpha values Parameters:
| VTypes | |
alphanum( String value )
- :
- BooleanThe function used to validate alphanumeric values The function used to validate alphanumeric values Parameters:
| VTypes | |
email( String value )
- :
- BooleanThe function used to validate email addresses. Note that this is a very basic validation -- complete
+'This field should be a URL in the format "http:/'+'/www.example.com"' | VTypes |
Method | Defined By | |
---|---|---|
alpha( String value )
+ :
+ BooleanThe function used to validate alpha values The function used to validate alpha values Parameters:
| VTypes | |
alphanum( String value )
+ :
+ BooleanThe function used to validate alphanumeric values The function used to validate alphanumeric values Parameters:
| VTypes | |
email( String value )
+ :
+ BooleanThe function used to validate email addresses. Note that this is a very basic validation -- complete
validation per ... The function used to validate email addresses. Note that this is a very basic validation -- complete
validation per the email RFC specifications is very complex and beyond the scope of this class, although
this function can be overridden if a more comprehensive validation scheme is desired. See the validation
section of the Wikipedia article on email addresses
for additional information. This implementation is intended to validate the following emails:
'barney@example.de', 'barney.rubble@example.com', 'barney-rubble@example.coop', 'barney+rubble@example.com'
-. Parameters:
| VTypes | |
url( String value )
- :
+.Parameters:
| VTypes | |
url( String value )
+ :
BooleanThe function used to validate URLs The function used to validate URLs Parameters:
| VTypes |