]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('Admin.view.phone.email.Email', {\r |
2 | extend: 'Ext.Container',\r | |
3 | \r | |
4 | controller: 'email-phone',\r | |
5 | viewModel: {\r | |
6 | type: 'email'\r | |
7 | },\r | |
8 | \r | |
9 | layout: {\r | |
10 | type: 'hbox',\r | |
11 | align: 'stretch'\r | |
12 | },\r | |
13 | \r | |
14 | listeners: {\r | |
15 | element: 'element',\r | |
16 | edgeswipeend: 'onSwipe'\r | |
17 | },\r | |
18 | \r | |
19 | items: [\r | |
20 | {\r | |
21 | xtype: 'button',\r | |
22 | iconCls:'x-fa fa-plus',\r | |
23 | ui: 'bright-blue round',\r | |
24 | userCls: 'pop-out',\r | |
25 | bind: {\r | |
26 | hidden: '{composing}'\r | |
27 | },\r | |
28 | width: 50,\r | |
29 | height: 50,\r | |
30 | \r | |
31 | // These cause the button to be floated / absolute positioned\r | |
32 | bottom: 10,\r | |
33 | right: 10,\r | |
34 | \r | |
35 | handler: 'onPlusButtonTap',\r | |
36 | listeners: {\r | |
37 | scope: 'controller',\r | |
38 | element: 'element',\r | |
39 | longpress: 'onLongPressCompose'\r | |
40 | }\r | |
41 | },\r | |
42 | {\r | |
43 | xtype: 'inbox',\r | |
44 | flex: 1,\r | |
45 | bind: {\r | |
46 | store: '{inbox}',\r | |
47 | hidden: '{composing}'\r | |
48 | },\r | |
49 | reference: 'messages',\r | |
50 | \r | |
51 | listeners: {\r | |
52 | select: 'onSelectMessage'\r | |
53 | }\r | |
54 | }\r | |
55 | ]\r | |
56 | });\r |