]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('KitchenSink.view.Header', {\r |
2 | extend: 'Ext.Container',\r | |
3 | xtype: 'appHeader',\r | |
4 | id: 'app-header',\r | |
5 | title: 'Ext JS Kitchen Sink',\r | |
6 | height: 52,\r | |
7 | layout: {\r | |
8 | type: 'hbox',\r | |
9 | align: 'middle'\r | |
10 | },\r | |
11 | \r | |
12 | initComponent: function() {\r | |
13 | document.title = this.title;\r | |
14 | \r | |
15 | this.items = [{\r | |
16 | xtype: 'component',\r | |
17 | id: 'app-header-logo'\r | |
18 | },{\r | |
19 | xtype: 'component',\r | |
20 | id: 'app-header-title',\r | |
21 | html: this.title,\r | |
22 | flex: 1\r | |
23 | }];\r | |
24 | \r | |
25 | if (!Ext.getCmp('options-toolbar')) {\r | |
26 | this.items.push({\r | |
27 | xtype: 'profileSwitcher'\r | |
28 | });\r | |
29 | }\r | |
30 | \r | |
31 | this.callParent();\r | |
32 | }\r | |
33 | });\r |