X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..6b044c28b5f26fb99c86c237ffad19741c0f7f3d:/docs/output/Ext.form.VTypes.html diff --git a/docs/output/Ext.form.VTypes.html b/docs/output/Ext.form.VTypes.html index 0e8f2637..478bc985 100644 --- a/docs/output/Ext.form.VTypes.html +++ b/docs/output/Ext.form.VTypes.html @@ -1,4 +1,4 @@ -
Properties Methods Events Direct Link

Class Ext.form.VTypes

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. +

Class Ext.form.VTypes

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) {
@@ -29,8 +29,8 @@ Ext.apply(Ext.form.VTypes, {
 '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: '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: 'This field should be an e-...
The error text to display when the email validation function returns false. Defaults to: @@ -46,7 +46,7 @@ information about more complex email validation. Defaults to: 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:
  • value : String
    The email address
Returns:
  • Boolean
    true if the RegExp test passed, and false if not.
VTypes urlString value )