X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/examples/spinner/spinner.js diff --git a/examples/spinner/spinner.js b/examples/spinner/spinner.js new file mode 100644 index 00000000..9dd7d9ce --- /dev/null +++ b/examples/spinner/spinner.js @@ -0,0 +1,38 @@ +/*! + * Ext JS Library 3.0.0 + * Copyright(c) 2006-2009 Ext JS, LLC + * licensing@extjs.com + * http://www.extjs.com/license + */ +Ext.onReady(function(){ + var simple = new Ext.FormPanel({ + labelWidth: 40, // label settings here cascade unless overridden + frame: true, + title: 'Simple Form', + bodyStyle: 'padding:5px 5px 0', + width: 210, + defaults: {width: 135}, + defaultType: 'textfield', + + items: [ + new Ext.ux.form.SpinnerField({ + fieldLabel: 'Age', + name: 'age' + }), + { + xtype: 'spinnerfield', + fieldLabel: 'Test', + name: 'test', + minValue: 0, + maxValue: 100, + allowDecimals: true, + decimalPrecision: 1, + incrementValue: 0.4, + alternateIncrementValue: 2.1, + accelerate: true + } + ] + }); + + simple.render('form-ct'); +});