在网格列配置中,我有一个单元格工具,我希望该工具的 iconCls 以行记录数据为条件。
},{
text: 'Favorite',
//dataIndex: 'favorite',
width: 80,
align: 'center',
cell: {
tools: {
play : {
iconCls:'x-fa yellow fa-star',
align:'center',
tooltip : 'Toggle Favorites',
handler: 'onFavoriteToggle'
}
}
}
}, {
我希望图标 cls 基于行记录最喜欢的属性(真/假),fa-star
或者fa-star-o
有谁知道如何做到这一点?