1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| Ext.define('KitchenSink.view.Header', {
| extend: 'Ext.Container',
| xtype: 'appHeader',
| id: 'app-header',
| height: 52,
| layout: {
| type: 'hbox',
| align: 'middle'
| },
| initComponent: function() {
| this.items = [{
| xtype: 'component',
| id: 'app-header-title',
| html: 'Ext JS Kitchen Sink',
| flex: 1
| }];
|
| if (!Ext.getCmp('options-toolbar')) {
| this.items.push({
| xtype: 'themeSwitcher'
| });
| }
|
| this.callParent();
| }
| });
|
|