ExtJS Portal - 不同大小的列
我需要能够在 ExtJS 门户中使用不同大小的列。例如,我希望在中心区域有一个区域可以容纳一个大的小部件,然后在其正下方有 2 个区域可以容纳 2 个较小的小部件。我一直试图通过列来解决这个问题,但似乎没有任何效果。帮助?
I need to be able to use different size columns in the ExtJS portal. For example, I want in the center region, one area which has room for one big widget, and then right below it, 2 areas for 2 smaller widgets. I keep trying to play with the columns to figure this out, but nothing seems to work. Help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
该门户使用
ColumnLayout
,因此您应该能够使用标准配置根据需要配置列宽。您尝试过什么(即发布一些代码)?The portal uses a
ColumnLayout
, so you should be able to configure column widths as needed using standard configs. What have you tried (i.e., post some code)?如果我做对了, tableLayout 将更适合您的需求......
尝试一下:http://www.extjs。 com/deploy/dev/docs/?class=Ext.layout.TableLayout
if i get this right a tableLayout would be more fitting your needs ...
give it a try : http://www.extjs.com/deploy/dev/docs/?class=Ext.layout.TableLayout
这是我到目前为止所拥有的:
我知道我可以配置整个门户的列宽,但我需要将它们堆叠起来。因此,顶部的一列跨越整个宽度,然后下面的两列由两个单独的宽度组成。如果我必须用 HTML 来表达它,那就是:
table
tr td colspan=“2” tr
td td tr
桌子
Here is what I have so far:
I know I can configure the column widths for the entire portal, but I need them to be stacked. So one column on top which spans the entire width, and then two below it which is composed of two individual widths. If I have to express it in HTML, here it is:
table
tr td colspan="2" tr
tr td td tr
table