--- /dev/null
+<html>\r
+<head>\r
+ <title>The source code</title>\r
+ <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
+ <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
+</head>\r
+<body onload="prettyPrint();">\r
+ <pre class="prettyprint lang-js">Ext.onReady(function(){\r
+ var simple = new Ext.FormPanel({\r
+ labelWidth: 40, // label settings here cascade unless overridden\r
+ frame: true,\r
+ title: 'Simple Form',\r
+ bodyStyle: 'padding:5px 5px 0',\r
+ width: 210,\r
+ defaults: {width: 135},\r
+ defaultType: 'textfield',\r
+\r
+ items: [\r
+ new Ext.ux.form.SpinnerField({\r
+ fieldLabel: 'Age',\r
+ name: 'age'\r
+ }),\r
+ {\r
+ xtype: 'spinnerfield',\r
+ fieldLabel: 'Test',\r
+ name: 'test',\r
+ minValue: 0,\r
+ maxValue: 100,\r
+ allowDecimals: true,\r
+ decimalPrecision: 1,\r
+ incrementValue: 0.4,\r
+ alternateIncrementValue: 2.1,\r
+ accelerate: true\r
+ }\r
+ ]\r
+ });\r
+\r
+ simple.render('form-ct');\r
+});\r
+</pre> \r
+</body>\r
+</html>
\ No newline at end of file