2 * The main viewport, split in to a west and center region.
3 * The North region should also be shown by default in the packaged
4 * (non-live) version of the docs. TODO: close button on north region.
6 Ext.define('Docs.view.Viewport', {
7 extend: 'Ext.container.Viewport',
9 'Docs.view.cls.Container',
10 'Docs.view.index.Container',
11 'Docs.view.tree.Tree',
17 defaults: { xtype: 'container' },
19 initComponent: function() {
22 // This is the 'live docs' header that should appear in the distributed version of the docs
27 // html: 'For up to date documentation and features, visit <a href="http://docs.sencha.com/ext-js/4-0">http://docs.sencha.com/ext-js/4-0</a>',
34 id: 'west-region-container',
52 Ext.getCmp('container').layout.setActiveItem(0);
53 Docs.History.push("");
59 id: 'search-container',
63 xtype: 'triggerfield',
67 enableKeyEvents: true,
69 onTriggerClick: function() {
72 this.setHideTrigger(true);
73 Ext.getCmp('search-dropdown').hide();
77 xtype: 'searchdropdown'
90 id: 'center-container',
102 xtype: 'indexcontainer',
103 classData: Docs.overviewData
106 xtype: 'classcontainer'
118 this.callParent(arguments);