X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..6b044c28b5f26fb99c86c237ffad19741c0f7f3d:/docs/output/Ext.form.VTypes.html diff --git a/docs/output/Ext.form.VTypes.html b/docs/output/Ext.form.VTypes.html index bc8fabf8..478bc985 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
@@ -15,7 +15,7 @@ Ext.apply(Ext.form.VTypes, {
// vtype Mask property: The keystroke filter mask
timeMask: /[\d\s:amp]/i
});
-Another example:
+Another example:
// custom Vtype for vtype:'IPAddress'
Ext.apply(Ext.form.VTypes, {
IPAddress: function(v) {
@@ -24,31 +24,31 @@ Ext.apply(Ext.form.VTypes, {
IPAddressText: 'Must be a numeric IP address',
IPAddressMask: /[\d\.]/i
});
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
-information about more complex ema... 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 emai... 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
+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 |