Suppose I have the following code snippet:
Ext.create('Ext.container.Viewport', { layout: 'border', renderTo: Ext.getBody(), items: [{ region: 'north', html: '<h1 class="x-panel-header">Page Title</h1>', autoHeight: true, border: false, margins: '0 0 5 0' }, { region: 'west', collapsible: true, title: 'Navigation', width: 150 // could use a TreePanel or AccordionLayout for navigational items }, { region: 'south', title: 'South Panel', collapsible: true, html: 'Information goes here', split: true, height: 100, minHeight: 100 }, { region: 'east', title: 'East Panel', collapsible: true, split: true, width: 150 }, { region: 'center', xtype: 'tabpanel', // TabPanel itself has no title activeTab: 0, // First tab active by default items: { title: 'Default Tab', html: 'The first tab\ content. Others may be added dynamically' } }] });
What I want to do is that the toolbar to the north will be hidden automatically when the mouse is removed from the northern region and will not be hidden when the mouse is in the northern region (just like an auto show on the Windows start menu)
source share