]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('Pandora.view.SongControls', {\r |
2 | extend: 'Ext.Container',\r | |
3 | alias: 'widget.songcontrols',\r | |
4 | height: 70,\r | |
5 | \r | |
6 | initComponent: function() {\r | |
7 | this.layout = {\r | |
8 | type: 'vbox',\r | |
9 | align: 'center',\r | |
10 | pack: 'center'\r | |
11 | };\r | |
12 | \r | |
13 | this.items = [{\r | |
14 | xtype: 'container',\r | |
15 | defaultType: 'button',\r | |
16 | height: 30,\r | |
17 | width: 300,\r | |
18 | layout: {\r | |
19 | type: 'hbox',\r | |
20 | align: 'center',\r | |
21 | pack: 'center'\r | |
22 | },\r | |
23 | items: [{\r | |
24 | text: 'Vote Down',\r | |
25 | action: 'vote-down'\r | |
26 | }, {\r | |
27 | text: 'Vote Up',\r | |
28 | action: 'vote-up'\r | |
29 | }, {\r | |
30 | text: 'Pause',\r | |
31 | action: 'pause'\r | |
32 | }, {\r | |
33 | text: 'Skip',\r | |
34 | action: 'skip'\r | |
35 | }]\r | |
36 | }, {\r | |
37 | width: 300,\r | |
38 | xtype: 'container',\r | |
39 | layout: {\r | |
40 | type: 'hbox',\r | |
41 | align: 'center'\r | |
42 | },\r | |
43 | items: [{\r | |
44 | xtype: 'component',\r | |
45 | html: '2:00'\r | |
46 | }, {\r | |
47 | xtype: 'progressbar',\r | |
48 | value: 0.5,\r | |
49 | flex: 1 \r | |
50 | }, {\r | |
51 | xtype: 'component',\r | |
52 | html: '4:00'\r | |
53 | }]\r | |
54 | }];\r | |
55 | \r | |
56 | this.callParent();\r | |
57 | }\r | |
58 | }); |