git.ithinksw.org
/
extjs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git]
/
examples
/
app
/
simple
/
app
/
view
/
user
/
Edit.js
1
Ext.define('AM.view.user.Edit', {
2
extend: 'Ext.window.Window',
3
alias : 'widget.useredit',
4
5
requires: ['Ext.form.Panel'],
6
7
title : 'Edit User',
8
layout: 'fit',
9
autoShow: true,
10
height: 120,
11
width: 280,
12
13
initComponent: function() {
14
this.items = [
15
{
16
xtype: 'form',
17
padding: '5 5 0 5',
18
border: false,
19
style: 'background-color: #fff;',
20
21
items: [
22
{
23
xtype: 'textfield',
24
name : 'name',
25
fieldLabel: 'Name'
26
},
27
{
28
xtype: 'textfield',
29
name : 'email',
30
fieldLabel: 'Email'
31
}
32
]
33
}
34
];
35
36
this.buttons = [
37
{
38
text: 'Save',
39
action: 'save'
40
},
41
{
42
text: 'Cancel',
43
scope: this,
44
handler: this.close
45
}
46
];
47
48
this.callParent(arguments);
49
}
50
});