Upgrade to ExtJS 3.3.0 - Released 10/06/2010
[extjs.git] / docs / source / Hidden.html
1 <html>
2 <head>
3   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
4   <title>The source code</title>
5     <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
6     <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
7 </head>
8 <body  onload="prettyPrint();">
9     <pre class="prettyprint lang-js">/*!
10  * Ext JS Library 3.3.0
11  * Copyright(c) 2006-2010 Ext JS, Inc.
12  * licensing@extjs.com
13  * http://www.extjs.com/license
14  */
15 <div id="cls-Ext.form.Hidden"></div>/**
16  * @class Ext.form.Hidden
17  * @extends Ext.form.Field
18  * A basic hidden field for storing hidden values in forms that need to be passed in the form submit.
19  * @constructor
20  * Create a new Hidden field.
21  * @param {Object} config Configuration options
22  * @xtype hidden
23  */
24 Ext.form.Hidden = Ext.extend(Ext.form.Field, {
25     // private
26     inputType : 'hidden',
27     
28     shouldLayout: false,
29
30     // private
31     onRender : function(){
32         Ext.form.Hidden.superclass.onRender.apply(this, arguments);
33     },
34
35     // private
36     initEvents : function(){
37         this.originalValue = this.getValue();
38     },
39
40     // These are all private overrides
41     setSize : Ext.emptyFn,
42     setWidth : Ext.emptyFn,
43     setHeight : Ext.emptyFn,
44     setPosition : Ext.emptyFn,
45     setPagePosition : Ext.emptyFn,
46     markInvalid : Ext.emptyFn,
47     clearInvalid : Ext.emptyFn
48 });
49 Ext.reg('hidden', Ext.form.Hidden);</pre>    
50 </body>
51 </html>