Advertisement
Guest User

Contact.js

a guest
Apr 5th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Ext.define('MyApp.view.Contact', {
  2. extend: 'Ext.form.Panel',
  3. xtype: 'contactPage',
  4. id: 'contactForm',
  5.  
  6. config: {
  7. title: 'Contact Us',
  8. iconCls: 'user',
  9. layout:{
  10. type: 'vbox'
  11. },
  12.  
  13. items: [
  14. {
  15. xtype: 'fieldset',
  16. title: 'Contact Us',
  17. instructions: 'Email is optional',
  18. items: [
  19. {
  20. xtype: 'textfield',
  21. label: 'Name',
  22. name: 'name',
  23. },
  24. {
  25. xtype:'emailfield',
  26. label: 'Email',
  27. name: 'email'
  28. },
  29. {
  30. xtype: 'textareafield',
  31. label: 'Message',
  32. name: 'message'
  33. },
  34. {
  35. xtype: 'button',
  36. ui: 'confirm',
  37. text: 'Submit',
  38. action: 'submitContact'
  39. }
  40. ]
  41. }
  42. ]
  43.  
  44. }
  45. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement