zieli1
17 Aug 2007, 3:38 AM
Hello!
I've created a nested Layout
var layout = new Ext.BorderLayout(document.body, {
north: {
split:false,
initialSize: 29,
titlebar: false
},
west: {
split:true,
initialSize: 250,
titlebar: true,
collapsible: true,
autoScroll: true,
minSize: 160,
maxSize: 400
},
center: {
autoScroll: false,
tabPosition: 'top'
}
});
layout.beginUpdate();
layout.add('north', new Ext.ContentPanel('top'));
layout.add('west', new Ext.ContentPanel('nav-tree', {title: '<b>Navigation</b>', closable:false}));
layout.add('west', new Ext.ContentPanel('nav-monitor', {title: '<b>Monitor</b>', closable:false}));
layout.getRegion('west').showPanel('nav-tree');
var innerLayout = new Ext.BorderLayout('content', {
south: {
split:true,
initialSize: 200,
minSize: 100,
maxSize: 400,
autoScroll:true,
collapsible:true,
titlebar: true
},
center: {
autoScroll:true
}
});
innerLayout.add('south', new Ext.ContentPanel('log', "<b>ITS Log</b>"));
innerLayout.add('center', new Ext.ContentPanel('main'));
layout.add('center', new Ext.NestedLayoutPanel(innerLayout));
layout.endUpdate();
There is also a Toolbar Navigation in the North Pannel.
when i click on a toolbar button i want to create a new panel in the inner Layout (center) but all i've tried doesn't work :-(
Can somebody help me??
I've created a nested Layout
var layout = new Ext.BorderLayout(document.body, {
north: {
split:false,
initialSize: 29,
titlebar: false
},
west: {
split:true,
initialSize: 250,
titlebar: true,
collapsible: true,
autoScroll: true,
minSize: 160,
maxSize: 400
},
center: {
autoScroll: false,
tabPosition: 'top'
}
});
layout.beginUpdate();
layout.add('north', new Ext.ContentPanel('top'));
layout.add('west', new Ext.ContentPanel('nav-tree', {title: '<b>Navigation</b>', closable:false}));
layout.add('west', new Ext.ContentPanel('nav-monitor', {title: '<b>Monitor</b>', closable:false}));
layout.getRegion('west').showPanel('nav-tree');
var innerLayout = new Ext.BorderLayout('content', {
south: {
split:true,
initialSize: 200,
minSize: 100,
maxSize: 400,
autoScroll:true,
collapsible:true,
titlebar: true
},
center: {
autoScroll:true
}
});
innerLayout.add('south', new Ext.ContentPanel('log', "<b>ITS Log</b>"));
innerLayout.add('center', new Ext.ContentPanel('main'));
layout.add('center', new Ext.NestedLayoutPanel(innerLayout));
layout.endUpdate();
There is also a Toolbar Navigation in the North Pannel.
when i click on a toolbar button i want to create a new panel in the inner Layout (center) but all i've tried doesn't work :-(
Can somebody help me??