【发布时间】:2015-02-21 16:23:40
【问题描述】:
我正在寻找一种将网格面板添加到我的视口的方法,我尝试使用 add() 函数,但这对我不起作用。
Ext.应用程序({ 名称:“我的应用”,
launch : function() {
Ext.create('Ext.container.Viewport', {
layout: 'border',
items: [{
region: 'north',
html: '<h1 class="x-panel-header">Page Title</h1>',
border: false,
margin: '0 0 5 0'
}, {
region: 'west',
title: 'Navigation',
width: 250,
collapsible: false,
items : {
// I want to add it just there
xtype : 'gridPanel'
}
}, {
region: 'south',
title: 'South Panel',
collapsible: true,
html: 'test test',
split: true,
height: 100,
minHeight: 100
}, {
region: 'east',
title: 'East Panel',
collapsible: true,
split: true,
width: 150
}, {
region: 'center',
xtype: 'tabpanel',
activeTab: 0,
items: {
title: 'test Tab',
html: ''
}
}]
});
}
});
提前谢谢,
【问题讨论】:
-
您已经为网格尝试了哪些配置代码?可以分享一下吗
标签: javascript extjs viewport gridpanel