Panel.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Ext.define('uas.view.form.basic.Panel', {
  2. extend: 'Ext.form.Panel',
  3. xtype: 'basic-form',
  4. layout:'column',
  5. bodyPadding: 40,
  6. defaults:{
  7. columnWidth:1,
  8. margin:'10 0 0 0'
  9. },
  10. items: [{
  11. xtype: 'textfield',
  12. name: 'textfield1',
  13. fieldLabel: 'Text field',
  14. value: 'Text field value'
  15. }, {
  16. xtype: 'hiddenfield',
  17. name: 'hidden1',
  18. value: 'Hidden field value'
  19. },{
  20. xtype: 'textfield',
  21. name: 'password1',
  22. inputType: 'password',
  23. fieldLabel: 'Password field'
  24. },{
  25. xtype: 'filefield',
  26. name: 'file1',
  27. fieldLabel: 'File upload'
  28. }, {
  29. xtype: 'textareafield',
  30. name: 'textarea1',
  31. fieldLabel: 'TextArea',
  32. value: 'Textarea value'
  33. }, {
  34. xtype: 'displayfield',
  35. name: 'displayfield1',
  36. fieldLabel: 'Display field',
  37. value: 'Display field <span style="color: "green";">value</span>'
  38. }, {
  39. xtype: 'numberfield',
  40. name: 'numberfield1',
  41. fieldLabel: 'Number field',
  42. value: 5,
  43. minValue: 0,
  44. maxValue: 50
  45. }, {
  46. xtype: 'checkboxfield',
  47. name: 'checkbox1',
  48. fieldLabel: 'Checkbox',
  49. boxLabel: 'box label'
  50. }, {
  51. xtype: 'radio',
  52. name: 'radio1',
  53. value: 'radiovalue1',
  54. fieldLabel: 'Radio buttons',
  55. boxLabel: 'radio 1'
  56. }, {
  57. xtype: 'radio',
  58. name: 'radio1',
  59. value: 'radiovalue2',
  60. fieldLabel: '',
  61. labelSeparator: '',
  62. hideEmptyLabel: false,
  63. boxLabel: 'radio 2'
  64. }, {
  65. xtype: 'datefield',
  66. name: 'date1',
  67. fieldLabel: 'Date Field'
  68. }, {
  69. xtype: 'timefield',
  70. name: 'time1',
  71. fieldLabel: 'Time Field',
  72. minValue: '1:30 AM',
  73. maxValue: '9:15 PM'
  74. }]
  75. });