Package: | Ext.form |
Defined In: | VTypes.js |
Class: | VTypes |
Extends: | Object |
Ext.apply(Ext.form.VTypes, {
IPAddress: function(v) {
return /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(v);
},
IPAddressText: 'Must be a numeric IP address'
});
Property | Defined By | |
---|---|---|
alphaMask : RegExp
The keystroke filter mask to be applied on alpha input
|
VTypes | |
alphaText : String
The error text to display when the alpha validation function returns false
|
VTypes | |
alphanumMask : RegExp
The keystroke filter mask to be applied on alphanumeric input
|
VTypes | |
alphanumText : String
The error text to display when the alphanumeric validation function returns false
|
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.
|
VTypes | |
emailText : String
The error text to display when the email validation function returns false
|
VTypes | |
urlText : String
The error text to display when the url validation function returns false
|
VTypes |
Method | Defined By | |
---|---|---|
alpha( String value ) : void The function used to validate alpha values
The function used to validate alpha values
Parameters:
|
VTypes | |
alphanum( String value ) : void The function used to validate alphanumeric values
The function used to validate alphanumeric values
Parameters:
|
VTypes | |
email( String value ) : void The 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.
Parameters:
|
VTypes | |
url( String value ) : void The function used to validate URLs
The function used to validate URLs
Parameters:
|
VTypes |