Class Roo.BorderLayout.create

Package:Roo.BorderLayout
Defined In: Roo/BorderLayout.js.
Class:create
Shortcut for creating a new BorderLayout object and adding one or more ContentPanels to it in a single step, handling
the beginUpdate and endUpdate calls internally. The key to this method is the panels property that can be
provided with each region config, which allows you to add ContentPanel configs in addition to the region configs
during creation. The following code is equivalent to the constructor-based example at the beginning of this class:

// shorthand
var CP = Roo.ContentPanel;

var layout = Roo.BorderLayout.create({
north: {
initialSize: 25,
titlebar: false,
panels: [new CP("north", "North")]
},
west: {
split:true,
initialSize: 200,
minSize: 175,
maxSize: 400,
titlebar: true,
collapsible: true,
panels: [new CP("west", {title: "West"})]
},
east: {
split:true,
initialSize: 202,
minSize: 175,
maxSize: 400,
titlebar: true,
collapsible: true,
panels: [new CP("autoTabs", {title: "Auto Tabs", closable: true})]
},
south: {
split:true,
initialSize: 100,
minSize: 100,
maxSize: 200,
titlebar: true,
collapsible: true,
panels: [new CP("south", {title: "South", closable: true})]
},
center: {
titlebar: true,
autoScroll:true,
resizeTabs: true,
minTabWidth: 50,
preferredTabWidth: 150,
panels: [
new CP("center1", {title: "Close Me", closable: true}),
new CP("center2", {title: "Center Panel", closable: false})
]
}
}, document.body);

layout.getRegion("center").showPanel("center1");
Class Comments / Notes => [Add Your comment/notes about this class]
Config Options - Has None
Public Properties - Has None
Public Methods - Has None
Events - Has None
Documentation generated by Introspection Doc Generator on Mon Sep 22 2014 18:01:37 GMT+0800 (HKT) Based on JsDoc Toolkit