更新时间:2023-10-05 23:45:58
您可以像这样绑定它:
Ext.create('Ext.grid.Panel', {
renderTo: Ext.getBody(),
store: store,
border: true,
flex: 2,
name: 'actionList',
title: this.titleActionGrid,
columns: [{
dataIndex: 'id',
},
{
xtype: 'widgetcolumn',
height: 50,
width: 165,
dataIndex: 'hide',
widget: {
bind: {
text: '{record.id}',
hidden: '{record.hide}'
},
xtype: 'button',
scale: 'large',
height: 45,
width: 155,
margin: 5
}
}
]
});