3 <title>The source code</title>
\r
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
7 <body onload="prettyPrint();">
\r
8 <pre class="prettyprint lang-js">Ext.onReady(function(){
\r
9 var simple = new Ext.FormPanel({
\r
10 labelWidth: 40, // label settings here cascade unless overridden
\r
12 title: 'Simple Form',
\r
13 bodyStyle: 'padding:5px 5px 0',
\r
15 defaults: {width: 135},
\r
16 defaultType: 'textfield',
\r
19 new Ext.ux.form.SpinnerField({
\r
24 xtype: 'spinnerfield',
\r
29 allowDecimals: true,
\r
30 decimalPrecision: 1,
\r
31 incrementValue: 0.4,
\r
32 alternateIncrementValue: 2.1,
\r
38 simple.render('form-ct');
\r