UNPKG

extjs-gpl

Version:

GPL licensed version of Sencha Ext JS

35 lines (30 loc) 759 B
Ext.define('KitchenSink.view.Header', { extend: 'Ext.Container', xtype: 'appHeader', id: 'app-header', title: 'Ext JS Kitchen Sink', height: 52, layout: { type: 'hbox', align: 'middle' }, initComponent: function() { document.title = this.title; this.items = [{ xtype: 'component', id: 'app-header-logo', cls: [ 'ext', 'ext-sencha' ] },{ xtype: 'component', id: 'app-header-title', html: this.title, flex: 1 }]; if (!Ext.getCmp('options-toolbar')) { this.items.push({ xtype: 'profileSwitcher' }); } this.callParent(); } });