1 Ext.data.JsonP.Ext_form_field_VTypes({
3 "name": "Ext.form.field.VTypes",
4 "doc": "<p>This is a singleton object which contains a set of commonly used field validation functions.\nThe validations provided are basic and intended to be easily customizable and extended.</p>\n\n\n<p>To add custom VTypes specify the <code><a href=\"#/api/Ext.form.field.Text-cfg-vtype\" rel=\"Ext.form.field.Text-cfg-vtype\" class=\"docClass\">vtype</a></code> validation\ntest function, and optionally specify any corresponding error text to display and any keystroke\nfiltering mask to apply. For example:</p>\n\n\n<pre><code>// custom Vtype for vtype:'time'\nvar timeTest = /^([1-9]|1[0-9]):([0-5][0-9])(\\s[a|p]m)$/i;\nExt.apply(Ext.form.field.VTypes, {\n // vtype validation function\n time: function(val, field) {\n return timeTest.test(val);\n },\n // vtype Text property: The error text to display when the validation function returns false\n timeText: 'Not a valid time. Must be in the format \"12:34 PM\".',\n // vtype Mask property: The keystroke filter mask\n timeMask: /[\\d\\s:amp]/i\n});\n</code></pre>\n\n\n<p>Another example:</p>\n\n<pre><code>// custom Vtype for vtype:'IPAddress'\nExt.apply(Ext.form.field.VTypes, {\n IPAddress: function(v) {\n return /^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$/.test(v);\n },\n IPAddressText: 'Must be a numeric IP address',\n IPAddressMask: /[\\d\\.]/i\n});\n</code></pre>\n\n",
9 "alternateClassNames": [
24 "member": "Ext.form.field.VTypes",
25 "doc": "<p>The function used to validate alpha values</p>\n",
30 "doc": "<p>The value</p>\n",
36 "doc": "<p>true if the RegExp test passed, and false if not.</p>\n"
40 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/field/VTypes.js",
42 "html_filename": "VTypes.html",
43 "href": "VTypes.html#Ext-form-field-VTypes-method-alpha",
44 "shortDoc": "<p>The function used to validate alpha values</p>\n"
49 "member": "Ext.form.field.VTypes",
50 "doc": "<p>The function used to validate alphanumeric values</p>\n",
55 "doc": "<p>The value</p>\n",
61 "doc": "<p>true if the RegExp test passed, and false if not.</p>\n"
65 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/field/VTypes.js",
67 "html_filename": "VTypes.html",
68 "href": "VTypes.html#Ext-form-field-VTypes-method-alphanum",
69 "shortDoc": "<p>The function used to validate alphanumeric values</p>\n"
74 "member": "Ext.form.field.VTypes",
75 "doc": "<p>The function used to validate email addresses. Note that this is a very basic validation -- complete\nvalidation per the email RFC specifications is very complex and beyond the scope of this class, although\nthis function can be overridden if a more comprehensive validation scheme is desired. See the validation\nsection of the <a href=\"http://en.wikipedia.org/wiki/E-mail_address\">Wikipedia article on email addresses</a>\nfor additional information. This implementation is intended to validate the following emails:<tt>\n'barney@example.de', 'barney.rubble@example.com', 'barney-rubble@example.coop', 'barney+rubble@example.com'\n</tt>.</p>\n",
80 "doc": "<p>The email address</p>\n",
86 "doc": "<p>true if the RegExp test passed, and false if not.</p>\n"
90 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/field/VTypes.js",
92 "html_filename": "VTypes.html",
93 "href": "VTypes.html#Ext-form-field-VTypes-method-email",
94 "shortDoc": "The function used to validate email addresses. Note that this is a very basic validation -- complete\nvalidation per ..."
99 "member": "Ext.form.field.VTypes",
100 "doc": "<p>The function used to validate URLs</p>\n",
105 "doc": "<p>The URL</p>\n",
111 "doc": "<p>true if the RegExp test passed, and false if not.</p>\n"
115 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/field/VTypes.js",
117 "html_filename": "VTypes.html",
118 "href": "VTypes.html#Ext-form-field-VTypes-method-url",
119 "shortDoc": "<p>The function used to validate URLs</p>\n"
124 "tagname": "property",
126 "member": "Ext.form.field.VTypes",
128 "doc": "<p>The keystroke filter mask to be applied on alpha input. Defaults to:\n<tt>/[a-z_]/i</tt></p>\n",
131 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/field/VTypes.js",
133 "html_filename": "VTypes.html",
134 "href": "VTypes.html#Ext-form-field-VTypes-property-alphaMask"
137 "tagname": "property",
139 "member": "Ext.form.field.VTypes",
141 "doc": "<p>The error text to display when the alpha validation function returns false. Defaults to:\n<tt>'This field should only contain letters and _'</tt></p>\n",
144 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/field/VTypes.js",
146 "html_filename": "VTypes.html",
147 "href": "VTypes.html#Ext-form-field-VTypes-property-alphaText",
148 "shortDoc": "The error text to display when the alpha validation function returns false. Defaults to:\n'This field should only con..."
151 "tagname": "property",
152 "name": "alphanumMask",
153 "member": "Ext.form.field.VTypes",
155 "doc": "<p>The keystroke filter mask to be applied on alphanumeric input. Defaults to:\n<tt>/[a-z0-9_]/i</tt></p>\n",
158 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/field/VTypes.js",
160 "html_filename": "VTypes.html",
161 "href": "VTypes.html#Ext-form-field-VTypes-property-alphanumMask"
164 "tagname": "property",
165 "name": "alphanumText",
166 "member": "Ext.form.field.VTypes",
168 "doc": "<p>The error text to display when the alphanumeric validation function returns false. Defaults to:\n<tt>'This field should only contain letters, numbers and _'</tt></p>\n",
171 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/field/VTypes.js",
173 "html_filename": "VTypes.html",
174 "href": "VTypes.html#Ext-form-field-VTypes-property-alphanumText",
175 "shortDoc": "The error text to display when the alphanumeric validation function returns false. Defaults to:\n'This field should o..."
178 "tagname": "property",
180 "member": "Ext.form.field.VTypes",
182 "doc": "<p>The keystroke filter mask to be applied on email input. See the <a href=\"#/api/Ext.form.field.VTypes-method-email\" rel=\"Ext.form.field.VTypes-method-email\" class=\"docClass\">email</a> method for\ninformation about more complex email validation. Defaults to:\n<tt>/[a-z0-9_.-@]/i</tt></p>\n",
185 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/field/VTypes.js",
187 "html_filename": "VTypes.html",
188 "href": "VTypes.html#Ext-form-field-VTypes-property-emailMask",
189 "shortDoc": "The keystroke filter mask to be applied on email input. See the email method for\ninformation about more complex emai..."
192 "tagname": "property",
194 "member": "Ext.form.field.VTypes",
196 "doc": "<p>The error text to display when the email validation function returns false. Defaults to:\n<tt>'This field should be an e-mail address in the format \"user@example.com\"'</tt></p>\n",
199 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/field/VTypes.js",
201 "html_filename": "VTypes.html",
202 "href": "VTypes.html#Ext-form-field-VTypes-property-emailText",
203 "shortDoc": "The error text to display when the email validation function returns false. Defaults to:\n'This field should be an e-..."
206 "tagname": "property",
208 "member": "Ext.form.field.VTypes",
210 "doc": "<p>The error text to display when the url validation function returns false. Defaults to:\n<tt>'This field should be a URL in the format \"http:/'+'/www.example.com\"'</tt></p>\n",
213 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/field/VTypes.js",
215 "html_filename": "VTypes.html",
216 "href": "VTypes.html#Ext-form-field-VTypes-property-urlText",
217 "shortDoc": "The error text to display when the url validation function returns false. Defaults to:\n'This field should be a URL i..."
223 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/field/VTypes.js",
225 "html_filename": "VTypes.html",
226 "href": "VTypes.html#Ext-form-field-VTypes",