Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ext.define('FeedViewer.view.main.FeedForm', {
- extend: 'Ext.form.Panel',
- xtype: 'feedform',
- requires: [
- 'Ext.Button',
- 'Ext.field.Select',
- 'Ext.form.FieldSet',
- 'Ext.Toolbar'
- ],
- title: 'New RSS Feed',
- items: [{
- xtype: 'fieldset',
- items: [{
- xtype: 'selectfield',
- label: 'Select a new feed',
- labelAlign: 'top',
- allowBlank: false,
- name: 'feedUrl',
- options: [{
- value: 'http://rssfeeds.usatoday.com/usatoday-NewsTopStories',
- text: 'USA Today Top Stories'
- }, {
- value: 'http://sports.espn.go.com/espn/rss/news',
- text: 'ESPN Top News'
- }]
- }]
- }, {
- xtype: 'toolbar',
- docked: 'bottom',
- items: [{
- xtype: 'button',
- reference: 'savebutton',
- action: 'save',
- ui: 'action',
- text: 'Add'
- }]
- }]
- });
- var form = me.dialog.down('form');
- if (form.isValid()) {
- }
Add Comment
Please, Sign In to add comment