]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * Demonstrates a simple login form.\r | |
3 | */\r | |
4 | Ext.define('KitchenSink.view.form.LoginForm', {\r | |
5 | extend: 'Ext.form.Panel',\r | |
6 | xtype: 'form-login',\r | |
7 | \r | |
8 | //<example>\r | |
9 | exampleTitle: 'Login Form',\r | |
10 | profiles: {\r | |
11 | classic: {\r | |
12 | labelWidth: 100\r | |
13 | },\r | |
14 | neptune: {\r | |
15 | labelWidth: 120\r | |
16 | },\r | |
17 | gray: {\r | |
18 | labelWidth: 100\r | |
19 | },\r | |
20 | "neptune-touch": {\r | |
21 | labelWidth: 120\r | |
22 | }\r | |
23 | },\r | |
24 | //</example>\r | |
25 | \r | |
26 | title: 'Login',\r | |
27 | frame:true,\r | |
28 | width: 320,\r | |
29 | bodyPadding: 10,\r | |
30 | \r | |
31 | defaultType: 'textfield',\r | |
32 | \r | |
33 | items: [{\r | |
34 | allowBlank: false,\r | |
35 | fieldLabel: 'User ID',\r | |
36 | name: 'user',\r | |
37 | emptyText: 'user id'\r | |
38 | }, {\r | |
39 | allowBlank: false,\r | |
40 | fieldLabel: 'Password',\r | |
41 | name: 'pass',\r | |
42 | emptyText: 'password',\r | |
43 | inputType: 'password'\r | |
44 | }, {\r | |
45 | xtype:'checkbox',\r | |
46 | fieldLabel: 'Remember me',\r | |
47 | name: 'remember'\r | |
48 | }],\r | |
49 | \r | |
50 | buttons: [\r | |
51 | { text:'Register' },\r | |
52 | { text:'Login' }\r | |
53 | ],\r | |
54 | \r | |
55 | initComponent: function() {\r | |
56 | this.defaults = {\r | |
57 | anchor: '100%',\r | |
58 | labelWidth: this.profileInfo.labelWidth\r | |
59 | };\r | |
60 | \r | |
61 | this.callParent();\r | |
62 | }\r | |
63 | });\r |