3 <title>The source code</title>
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
7 <body onload="prettyPrint();">
8 <pre class="prettyprint lang-js">/*!
10 * Copyright(c) 2006-2009 Ext JS, LLC
12 * http://www.extjs.com/license
14 <div id="cls-Ext.form.Hidden"></div>/**
\r
15 * @class Ext.form.Hidden
\r
16 * @extends Ext.form.Field
\r
17 * A basic hidden field for storing hidden values in forms that need to be passed in the form submit.
\r
19 * Create a new Hidden field.
\r
20 * @param {Object} config Configuration options
\r
23 Ext.form.Hidden = Ext.extend(Ext.form.Field, {
\r
25 inputType : 'hidden',
\r
28 onRender : function(){
\r
29 Ext.form.Hidden.superclass.onRender.apply(this, arguments);
\r
33 initEvents : function(){
\r
34 this.originalValue = this.getValue();
\r
37 // These are all private overrides
\r
38 setSize : Ext.emptyFn,
\r
39 setWidth : Ext.emptyFn,
\r
40 setHeight : Ext.emptyFn,
\r
41 setPosition : Ext.emptyFn,
\r
42 setPagePosition : Ext.emptyFn,
\r
43 markInvalid : Ext.emptyFn,
\r
44 clearInvalid : Ext.emptyFn
\r
46 Ext.reg('hidden', Ext.form.Hidden);</pre>