Threaded View
-
9 Dec 2011 10:35 AM #1
Answered: toolbar in tabpanel
Answered: toolbar in tabpanel
I tried to put a toolbar inside a tabpanel but there used to be a "dockedItems" property which is not longer valid, so if i put the toolbar in the "items" then it counts as another tab, I can't find any way to do what I want in the docs, anyone wanna point me in the right direction?
-
Best Answer Posted by rdougan
The following code provides the expected result in PR2:
Code:Ext.setup({ onReady: function() { Ext.Viewport.add({ xtype: 'tabpanel', items: [ { xtype: 'toolbar', docked: 'top', ui: 'light', title: 'Tab Panel' }, { xtype: 'panel', title: 'Hello', html: 'First panel' }, { xtype: 'panel', title: 'Two', html: 'First panel' } ] }); } });


Reply With Quote