{header:'账号',dataIndex:'mdflag',width:200},
{header:'金额',dataIndex:'paflag',width:90},
{header:'状态',dataIndex:'code',width:120,renderer:function(value, cellmeta, record, rowIndex, columnIndex, store){
if(record.data['mdflag']=='1' && record.data['pyflag']=='2' && value=='001'){
return "001";
}else if(record.data['code']=='211'){
return "002";
}else{
return ' ' );
}
}},
extjs中renderer函数的用法
最新推荐文章于 2020-08-18 10:41:33 发布
本文深入探讨了在表格数据展示中如何使用JavaScript进行状态的条件渲染,特别关注于当特定字段满足一定条件时如何动态显示状态。通过示例代码详细解释了如何根据不同条件返回不同的状态值,对于理解数据展示逻辑及提升前端开发效率有重要指导意义。
4万+

被折叠的 条评论
为什么被折叠?



