X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/app/simple/app/view/user/Edit.js diff --git a/examples/app/simple/app/view/user/Edit.js b/examples/app/simple/app/view/user/Edit.js new file mode 100644 index 00000000..eaabbfee --- /dev/null +++ b/examples/app/simple/app/view/user/Edit.js @@ -0,0 +1,50 @@ +Ext.define('AM.view.user.Edit', { + extend: 'Ext.window.Window', + alias : 'widget.useredit', + + requires: ['Ext.form.Panel'], + + title : 'Edit User', + layout: 'fit', + autoShow: true, + height: 120, + width: 280, + + initComponent: function() { + this.items = [ + { + xtype: 'form', + padding: '5 5 0 5', + border: false, + style: 'background-color: #fff;', + + items: [ + { + xtype: 'textfield', + name : 'name', + fieldLabel: 'Name' + }, + { + xtype: 'textfield', + name : 'email', + fieldLabel: 'Email' + } + ] + } + ]; + + this.buttons = [ + { + text: 'Save', + action: 'save' + }, + { + text: 'Cancel', + scope: this, + handler: this.close + } + ]; + + this.callParent(arguments); + } +});