-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-form.field.VTypes'>/**
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>The source code</title>
+ <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../prettify/prettify.js"></script>
+ <style type="text/css">
+ .highlight { display: block; background-color: #ddd; }
+ </style>
+ <script type="text/javascript">
+ function highlight() {
+ document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+ }
+ </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+ <pre class="prettyprint lang-js"><span id='Ext-form-field-VTypes'>/**
</span> * @class Ext.form.field.VTypes
* <p>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.</p>
singleton: true,
alternateClassName: 'Ext.form.VTypes',
-<span id='Ext-form.field.VTypes-method-email'> /**
+<span id='Ext-form-field-VTypes-method-email'> /**
</span> * 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
'email' : function(v){
return email.test(v);
},
-<span id='Ext-form.field.VTypes-property-emailText'> /**
+<span id='Ext-form-field-VTypes-property-emailText'> /**
</span> * The error text to display when the email validation function returns false. Defaults to:
* <tt>'This field should be an e-mail address in the format "user@example.com"'</tt>
* @type String
*/
'emailText' : 'This field should be an e-mail address in the format "user@example.com"',
-<span id='Ext-form.field.VTypes-property-emailMask'> /**
+<span id='Ext-form-field-VTypes-property-emailMask'> /**
</span> * The keystroke filter mask to be applied on email input. See the {@link #email} method for
* information about more complex email validation. Defaults to:
* <tt>/[a-z0-9_\.\-@]/i</tt>
*/
'emailMask' : /[a-z0-9_\.\-@\+]/i,
-<span id='Ext-form.field.VTypes-method-url'> /**
+<span id='Ext-form-field-VTypes-method-url'> /**
</span> * The function used to validate URLs
* @param {String} value The URL
* @return {Boolean} true if the RegExp test passed, and false if not.
'url' : function(v){
return url.test(v);
},
-<span id='Ext-form.field.VTypes-property-urlText'> /**
+<span id='Ext-form-field-VTypes-property-urlText'> /**
</span> * The error text to display when the url validation function returns false. Defaults to:
* <tt>'This field should be a URL in the format "http:/'+'/www.example.com"'</tt>
* @type String
*/
'urlText' : 'This field should be a URL in the format "http:/'+'/www.example.com"',
-<span id='Ext-form.field.VTypes-method-alpha'> /**
+<span id='Ext-form-field-VTypes-method-alpha'> /**
</span> * The function used to validate alpha values
* @param {String} value The value
* @return {Boolean} true if the RegExp test passed, and false if not.
'alpha' : function(v){
return alpha.test(v);
},
-<span id='Ext-form.field.VTypes-property-alphaText'> /**
+<span id='Ext-form-field-VTypes-property-alphaText'> /**
</span> * The error text to display when the alpha validation function returns false. Defaults to:
* <tt>'This field should only contain letters and _'</tt>
* @type String
*/
'alphaText' : 'This field should only contain letters and _',
-<span id='Ext-form.field.VTypes-property-alphaMask'> /**
+<span id='Ext-form-field-VTypes-property-alphaMask'> /**
</span> * The keystroke filter mask to be applied on alpha input. Defaults to:
* <tt>/[a-z_]/i</tt>
* @type RegExp
*/
'alphaMask' : /[a-z_]/i,
-<span id='Ext-form.field.VTypes-method-alphanum'> /**
+<span id='Ext-form-field-VTypes-method-alphanum'> /**
</span> * The function used to validate alphanumeric values
* @param {String} value The value
* @return {Boolean} true if the RegExp test passed, and false if not.
'alphanum' : function(v){
return alphanum.test(v);
},
-<span id='Ext-form.field.VTypes-property-alphanumText'> /**
+<span id='Ext-form-field-VTypes-property-alphanumText'> /**
</span> * The error text to display when the alphanumeric validation function returns false. Defaults to:
* <tt>'This field should only contain letters, numbers and _'</tt>
* @type String
*/
'alphanumText' : 'This field should only contain letters, numbers and _',
-<span id='Ext-form.field.VTypes-property-alphanumMask'> /**
+<span id='Ext-form-field-VTypes-property-alphanumMask'> /**
</span> * The keystroke filter mask to be applied on alphanumeric input. Defaults to:
* <tt>/[a-z0-9_]/i</tt>
* @type RegExp
'alphanumMask' : /[a-z0-9_]/i
};
})());
-</pre></pre></body></html>
\ No newline at end of file
+</pre>
+</body>
+</html>