PDA

View Full Version : Layout with Top Tabs



cgishack
14 Jun 2007, 6:53 AM
Hello
Is there a way I can have tabs at the top using the Content Pannels and Border Layout?



var CP = Ext.ContentPanel;

layout.beginUpdate();
layout.add("north", new CP("north", "North"));
layout.add("south", new CP("south", {title: "South", closable: true}));
layout.add("west", new CP("west", {title: "West"}));
layout.add("east", new CP("autoTabs", {title: "Auto Tabs", closable: true}));
layout.add("center", new CP("center1", {title: "Close Me", closable: true}));
layout.add("center", new CP("center2", {title: "Center Panel", closable: false}));
layout.getRegion("center").showPanel("center1");
layout.endUpdate();


Drew

tryanDLS
14 Jun 2007, 7:16 AM
Please look at the doc. See http://extjs.com/deploy/ext-1.1-beta1/docs/output/Ext.LayoutRegion.html#config-tabPosition

cgishack
14 Jun 2007, 9:21 AM
Ahh.. yes.. Thanks.