Advertisement
Guest User

form view

a guest
Mar 14th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. // Stored in app/view/form1.js
  2. Ext.define('myapp.view.form1', {
  3. extend: 'Ext.form.Panel',
  4. xtype: 'form1Me',
  5. requires: [
  6. 'Ext.form.FieldSet',
  7. ],
  8. id: 'presscForm',
  9. config: {
  10. items: [
  11. {
  12. xtype: 'fieldset',
  13. id: 'pressc',
  14. instructions: 'Please enter the information above.',
  15. defaults: {
  16. labelWidth: '35%'
  17. },
  18. items: [
  19. {
  20. xtype:'textfield',
  21. name: 'name',
  22. label: 'Name',
  23. id: 'eman',
  24. placeHolder: 'Name'
  25. },
  26.  
  27. {
  28. xtype: 'textareafield',
  29. name : 'Prescription',
  30. id: 'pres',
  31. label: 'Prescription',
  32. placeHolder: 'Enter your prescription here...'
  33. }
  34. ]
  35. },
  36.  
  37. {
  38. xtype: 'container',
  39. defaults: {
  40. xtype: 'button',
  41. style: 'margin: .5em',
  42. flex : 1
  43. },
  44. layout: {
  45. type: 'hbox'
  46. },
  47. items: [
  48. {
  49.  
  50. text: 'Submit',
  51. action: 'sub',
  52. scope: this,
  53. hasDisabled: false
  54.  
  55. },
  56. {
  57. text: 'Reset',
  58.  
  59. action: 'res',
  60. }
  61. }
  62. ]
  63. }
  64. ]
  65. }
  66. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement