Guest User

Untitled

a guest
Jul 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. Ext.define('FeedViewer.view.main.FeedForm', {
  2. extend: 'Ext.form.Panel',
  3. xtype: 'feedform',
  4.  
  5. requires: [
  6. 'Ext.Button',
  7. 'Ext.field.Select',
  8. 'Ext.form.FieldSet',
  9. 'Ext.Toolbar'
  10. ],
  11.  
  12. title: 'New RSS Feed',
  13.  
  14. items: [{
  15. xtype: 'fieldset',
  16. items: [{
  17. xtype: 'selectfield',
  18. label: 'Select a new feed',
  19. labelAlign: 'top',
  20. allowBlank: false,
  21. name: 'feedUrl',
  22. options: [{
  23. value: 'http://rssfeeds.usatoday.com/usatoday-NewsTopStories',
  24. text: 'USA Today Top Stories'
  25. }, {
  26. value: 'http://sports.espn.go.com/espn/rss/news',
  27. text: 'ESPN Top News'
  28. }]
  29. }]
  30. }, {
  31. xtype: 'toolbar',
  32. docked: 'bottom',
  33. items: [{
  34. xtype: 'button',
  35. reference: 'savebutton',
  36. action: 'save',
  37. ui: 'action',
  38. text: 'Add'
  39. }]
  40. }]
  41. });
  42.  
  43. var form = me.dialog.down('form');
  44.  
  45. if (form.isValid()) {
  46.  
  47. }
Add Comment
Please, Sign In to add comment