Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
984 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. Ext.onReady(function(){
  8. var simple = new Ext.FormPanel({
  9. labelWidth: 40, // label settings here cascade unless overridden
  10. frame: true,
  11. title: 'Simple Form',
  12. bodyStyle: 'padding:5px 5px 0',
  13. width: 210,
  14. defaults: {width: 135},
  15. defaultType: 'textfield',
  16. items: [
  17. new Ext.ux.form.SpinnerField({
  18. fieldLabel: 'Age',
  19. name: 'age'
  20. }),
  21. {
  22. xtype: 'spinnerfield',
  23. fieldLabel: 'Test',
  24. name: 'test',
  25. minValue: 0,
  26. maxValue: 100,
  27. allowDecimals: true,
  28. decimalPrecision: 1,
  29. incrementValue: 0.4,
  30. alternateIncrementValue: 2.1,
  31. accelerate: true
  32. }
  33. ]
  34. });
  35. simple.render('form-ct');
  36. });