source: trunk/web/addons/job_monarch/lib/extjs/docs/output/Ext.form.VTypes.html @ 619

Last change on this file since 619 was 619, checked in by ramonb, 15 years ago

lib/:

  • added new AJAX dependancies: ExtJS, pChart, Lightbox2
File size: 10.0 KB
Line 
1        <div class="body-wrap">
2        <div class="top-tools">
3            <a class="inner-link" href="#Ext.form.VTypes-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4            <a class="inner-link" href="#Ext.form.VTypes-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5            <a class="inner-link" href="#Ext.form.VTypes-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6                        <a class="bookmark" href="../docs/?class=Ext.form.VTypes"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
7        </div>
8                <h1>Class Ext.form.VTypes</h1>
9        <table cellspacing="0">
10            <tr><td class="label">Package:</td><td class="hd-info">Ext.form</td></tr>
11            <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/VTypes.js" target="_blank">VTypes.js</a></td></tr>
12            <tr><td class="label">Class:</td><td class="hd-info">VTypes</td></tr>
13                                    <tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>
14                    </table>
15        <div class="description">
16            *
17This is a singleton object which contains a set of commonly used field validation functions.
18The validations provided are basic and intended to be easily customizable and extended. To add
19your own custom VType:<pre><code>Ext.apply(Ext.form.VTypes, {
20    IPAddress:  <b>function</b>(v) {
21        <b>return</b> /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(v);
22    },
23    IPAddressText: <em>'Must be a numeric IP address'</em>
24});</code></pre><br><br><i>This class is a singleton and cannot be created directly.</i>        </div>
25       
26        <div class="hr"></div>
27                <a id="Ext.form.VTypes-props"></a>
28        <h2>Public Properties</h2>
29                <table cellspacing="0" class="member-table">
30            <tr>
31                <th class="sig-header" colspan="2">Property</th>
32                <th class="msource-header">Defined By</th>
33            </tr>
34                <tr class="property-row">
35        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
36        <td class="sig">
37        <a id="Ext.form.VTypes-alphaMask"></a>
38            <b>alphaMask</b> : RegExp            <div class="mdesc">
39                            The keystroke filter mask to be applied on alpha input                        </div>
40        </td>
41        <td class="msource">VTypes</td>
42    </tr>
43        <tr class="property-row alt">
44        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
45        <td class="sig">
46        <a id="Ext.form.VTypes-alphaText"></a>
47            <b>alphaText</b> : String            <div class="mdesc">
48                            The error text to display when the alpha validation function returns false                        </div>
49        </td>
50        <td class="msource">VTypes</td>
51    </tr>
52        <tr class="property-row">
53        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
54        <td class="sig">
55        <a id="Ext.form.VTypes-alphanumMask"></a>
56            <b>alphanumMask</b> : RegExp            <div class="mdesc">
57                            The keystroke filter mask to be applied on alphanumeric input                        </div>
58        </td>
59        <td class="msource">VTypes</td>
60    </tr>
61        <tr class="property-row alt">
62        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
63        <td class="sig">
64        <a id="Ext.form.VTypes-alphanumText"></a>
65            <b>alphanumText</b> : String            <div class="mdesc">
66                            The error text to display when the alphanumeric validation function returns false                        </div>
67        </td>
68        <td class="msource">VTypes</td>
69    </tr>
70        <tr class="property-row expandable">
71        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
72        <td class="sig">
73        <a id="Ext.form.VTypes-emailMask"></a>
74            <b>emailMask</b> : RegExp            <div class="mdesc">
75                        <div class="short">The keystroke filter mask to be applied on email input.  See the email method for
76information about more complex ema...</div>
77            <div class="long">
78                The keystroke filter mask to be applied on email input.  See the <a ext:cls="Ext.form.VTypes" ext:member="email" href="output/Ext.form.VTypes.html#email">email</a> method for
79information about more complex email validation.            </div>
80                        </div>
81        </td>
82        <td class="msource">VTypes</td>
83    </tr>
84        <tr class="property-row alt">
85        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
86        <td class="sig">
87        <a id="Ext.form.VTypes-emailText"></a>
88            <b>emailText</b> : String            <div class="mdesc">
89                            The error text to display when the email validation function returns false                        </div>
90        </td>
91        <td class="msource">VTypes</td>
92    </tr>
93        <tr class="property-row">
94        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
95        <td class="sig">
96        <a id="Ext.form.VTypes-urlText"></a>
97            <b>urlText</b> : String            <div class="mdesc">
98                            The error text to display when the url validation function returns false                        </div>
99        </td>
100        <td class="msource">VTypes</td>
101    </tr>
102            </table>
103                <a id="Ext.form.VTypes-methods"></a>
104        <h2>Public Methods</h2>
105                <table cellspacing="0" class="member-table">
106            <tr>
107                <th class="sig-header" colspan="2">Method</th>
108                <th class="msource-header">Defined By</th>
109            </tr>
110                <tr class="method-row expandable">
111        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
112        <td class="sig">
113        <a id="Ext.form.VTypes-alpha"></a>
114            <b>alpha</b>(&nbsp;<code>String value</code>&nbsp;) : void            <div class="mdesc">
115                        <div class="short">The function used to validate alpha values</div>
116            <div class="long">
117                The function used to validate alpha values    <div class="mdetail-params">
118        <strong>Parameters:</strong>
119        <ul><li><code>value</code> : String<div class="sub-desc">The value</div></li>        </ul>
120        <strong>Returns:</strong>
121        <ul>
122            <li><code>void</code></li>
123        </ul>
124    </div>
125                </div>
126                        </div>
127        </td>
128        <td class="msource">VTypes</td>
129    </tr>
130        <tr class="method-row alt expandable">
131        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
132        <td class="sig">
133        <a id="Ext.form.VTypes-alphanum"></a>
134            <b>alphanum</b>(&nbsp;<code>String value</code>&nbsp;) : void            <div class="mdesc">
135                        <div class="short">The function used to validate alphanumeric values</div>
136            <div class="long">
137                The function used to validate alphanumeric values    <div class="mdetail-params">
138        <strong>Parameters:</strong>
139        <ul><li><code>value</code> : String<div class="sub-desc">The value</div></li>        </ul>
140        <strong>Returns:</strong>
141        <ul>
142            <li><code>void</code></li>
143        </ul>
144    </div>
145                </div>
146                        </div>
147        </td>
148        <td class="msource">VTypes</td>
149    </tr>
150        <tr class="method-row expandable">
151        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
152        <td class="sig">
153        <a id="Ext.form.VTypes-email"></a>
154            <b>email</b>(&nbsp;<code>String value</code>&nbsp;) : void            <div class="mdesc">
155                        <div class="short">The function used to validate email addresses.  Note that this is a very basic validation -- complete
156validation per ...</div>
157            <div class="long">
158                The function used to validate email addresses.  Note that this is a very basic validation -- complete
159validation per the email RFC specifications is very complex and beyond the scope of this class, although
160this function can be overridden if a more comprehensive validation scheme is desired.  See the validation
161section of the <a href="http://en.wikipedia.org/wiki/E-mail_address">Wikipedia article on email addresses</a> 
162for additional information.    <div class="mdetail-params">
163        <strong>Parameters:</strong>
164        <ul><li><code>value</code> : String<div class="sub-desc">The email address</div></li>        </ul>
165        <strong>Returns:</strong>
166        <ul>
167            <li><code>void</code></li>
168        </ul>
169    </div>
170                </div>
171                        </div>
172        </td>
173        <td class="msource">VTypes</td>
174    </tr>
175        <tr class="method-row alt expandable">
176        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
177        <td class="sig">
178        <a id="Ext.form.VTypes-url"></a>
179            <b>url</b>(&nbsp;<code>String value</code>&nbsp;) : void            <div class="mdesc">
180                        <div class="short">The function used to validate URLs</div>
181            <div class="long">
182                The function used to validate URLs    <div class="mdetail-params">
183        <strong>Parameters:</strong>
184        <ul><li><code>value</code> : String<div class="sub-desc">The URL</div></li>        </ul>
185        <strong>Returns:</strong>
186        <ul>
187            <li><code>void</code></li>
188        </ul>
189    </div>
190                </div>
191                        </div>
192        </td>
193        <td class="msource">VTypes</td>
194    </tr>
195            </table>
196                <a id="Ext.form.VTypes-events"></a>
197        <h2>Public Events</h2>
198        <div class="no-members">This class has no public events.</div>
199        </div>
Note: See TracBrowser for help on using the repository browser.