Ext.grid.View 在 ext 4 中丢失配置选项(自动填充)
在我的一个 ext3 应用程序中,我将这些参数用于 GridView:
autoFill: true, //makes all columns Together as width as thehole table forceFit: true, //使所有列加在一起与孔表一样宽 scrollOffset: 0 //当没有滚动条时删除为滚动条保留的空间
不幸的是我找不到它们(或ext4中的任何等效项)。有谁知道这些属性在新的 Ext.grid.View 中是如何被替换的?
In one ext3 application of mine i'm using these parameters for GridView:
autoFill: true, //makes all columns together as wide as the hole table
forceFit: true, //makes all columns together as wide as the hole table
scrollOffset: 0 //removes the space reserved for the scrollbar when there is no scrollbar
unfortunately i can't find them (or anything equivalent in ext4 anymore). Does anyone knows how these propertys has been replaced in the new Ext.grid.View?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 ExtJS4 中,列使用 Ext 进行布局。 layout.container.HBox 布局。
因此,
autoFill: true
- 只要您至少有一项列配置具有flex:1
,您就不需要此设置宽度
,您将在网格下方看到一个水平滚动条。但对于 v3 来说这是正确的 。scrollOffset:0
现在这种情况会自动发生。In ExtJS4, the columns are laid out using Ext.layout.container.HBox layout.
So,
autoFill: true
- You don't need this as long as you haveflex:1
for at least one of the column configurationsforceFit: true
not required (you will see a horizontal scroll bar below your grid if you specify absolutewidth
for columns that together exceeds the total grid width. But this was true for v3 as well.scrollOffset:0
anymore. This happens automagically now.