View Full Version : How to add a toolbar fo each tab in a border layout ?
mediastart
21 May 2007, 4:48 AM
Hi ext users !
In the center region of my border layout I added some contentPanel . For each one, a tabs had been created. I want, for each one a toolbar. I want, if the content of my tabs is so high the scrollbar scroll the content but not the toolbar.
How can I create that ? Someone have a little example ?
Thanks a lot !
PS : I used one of the contentPanel to create a JSonView, is it make a difference ?
jsakalos
21 May 2007, 5:54 AM
Look here (http://www.aariadne.com/extjs/examples/accordion.html) there is toolbar in west region. See also html markup.
mediastart
21 May 2007, 6:06 AM
Hi,
I know how to add one toolbar for a region : west, center etc...
But, if I've for example 3 contentPanel in the center region. For each one I've a tabs, and I want for each one a toolbar. Visualy it's like one toolbar for the center region but the content change when you change of tabs.
You know how to do that please ?
Thanks for your help
jsakalos
21 May 2007, 6:12 AM
Ahaah,
this I've never done. What I've read about on this forum was putting tb to the north region. You could maybe use nested layout for center and put tb in north.
Just an idea, never done it ... ;)
mediastart
21 May 2007, 6:19 AM
Yes, I had the same idea but even I can do that it's not really what I want. If I made a nestedLayout with north and center region, my tabs will be under the menu. Or, I want a menu for each tab, so I think it's more logic the menu it's under the tabs.
If someone has an idea, don't hesitate to share it ;)
Thanks a lot
jsakalos
21 May 2007, 6:23 AM
You can have same tb for all tabs. It just needs some coding as on activate of one tab you have to move the tb containter from it's previous DOM position and insert it as the first child of the current tab element.
I'm doing something similar on the page I've given to you while dragging/reordering panels.
mediastart
21 May 2007, 6:32 AM
Ok, I'm going to looking for this example.
Thanks
jsakalos
21 May 2007, 6:35 AM
It may also need to setup some variables for this "running" toolbar to inform it in which tab it is currently running.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.