View Full Version : tabstyle buttons?
neongrau
26 Mar 2007, 4:15 AM
with the current Ext1alpha is there a way to create a buttonbar that looks like a tabset just without switching any contentpanels?
Animal
26 Mar 2007, 4:40 AM
Try the following code. The div with id "my-buttonbar-container" must exist. YMMV!
var tp = Ext.TabPanel.prototype;
var stripWrap = Ext.get(tp.createStrip(Ext.getDom("my-buttonbar-container")), true);
var stripEl = Ext.get(tp.createStripList(stripWrap.dom), true);
var els = tp.createStripElements(stripEl.dom, "Button Text", false);
neongrau
26 Mar 2007, 5:27 AM
hi animal!
thanks for the tip, but that doesn't seem to work for me.
i have a slightly complex borderlayout for a view with a treepanel, gridpanel and view area.
what i wanted to do was adding a tabbar on top that switches a few vars and reloads the tree and grid.
but even when adding dummy containers for the contentpanels, i can't get them to be invisible.
Animal
26 Mar 2007, 5:41 AM
"doesn't seem to work" doesn't seem to work for me.
neongrau
26 Mar 2007, 5:47 AM
:lol:
thanks, but that wasn't meant as a question at all.
i'm trying various things atm in the hope of finding a way.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.