var mainPanel = Ext.create('Ext.Panel', {
id:'main-panel',
title: 'Anchor Layout',
layout:'anchor',
defaults: {bodyStyle: 'padding:15px'},
items: [{
title: 'Panel 2',
height: 100,
anchor: '-100',
html: '<p>Width = container width - 100 pixels</p>'
},{
title: 'Panel 3',
anchor: '-10, -262',
html: '<p>Width = container width - 10 pixels</p><p>Height = container height - 262 pixels</p>'
}]
// ,autoLoad:'http://www.baidu.com'
});
怎么load新页呢
这个不好用 mainPanel.loader.load({url:"http://www.baidu.com",renderer:"component"})
id:'main-panel',
title: 'Anchor Layout',
layout:'anchor',
defaults: {bodyStyle: 'padding:15px'},
items: [{
title: 'Panel 2',
height: 100,
anchor: '-100',
html: '<p>Width = container width - 100 pixels</p>'
},{
title: 'Panel 3',
anchor: '-10, -262',
html: '<p>Width = container width - 10 pixels</p><p>Height = container height - 262 pixels</p>'
}]
// ,autoLoad:'http://www.baidu.com'
});
怎么load新页呢
这个不好用 mainPanel.loader.load({url:"http://www.baidu.com",renderer:"component"})
比如整个是borderlayout 左边树 中间空的Panel 点击一个节点 Panel就载入一个页面
我不是楼主哦 http://topic.csdn.net/u/20110531/12/15c44e11-c6df-4bd2-9896-4f90cf5f3230.html
这个问题