【发布时间】:2018-07-11 13:04:12
【问题描述】:
我想使用我的记录的属性显示/隐藏网格的小部件列。
我试图通过绑定我的值来做到这一点:
{
xtype: 'grid',
bind: {
store: 'ActionList'
},
border: true,
flex: 2,
name: 'actionList',
title: this.titleActionGrid,
columns: [{
xtype: 'widgetcolumn',
height: 50,
width: 65,
widget: {
xtype: 'button',
text: '{sActionTitle}',
scale: 'large',
height: 45,
width: 45,
margin: 5
},
bind: {
hidden: '{bIsHidden}'
}
}]
}
这不起作用,所以我在互联网上搜索并找到了这个小提琴:https://fiddle.sencha.com/#view/editor&fiddle/22rl
所以我用这部分代码试了一下:
cell: {
tools: {
up: {
bind: {
hidden: '{record.bIsHidden}'
}
}
}
}
但这并没有奏效,事实上小提琴是现代的,而我的代码是经典的..
我没有找到其他任何东西,这就是我在这里的原因,恳求任何人帮助我;)
在此先感谢您。
ExtJS 经典 6.5.3
【问题讨论】: