Angular UI Grid FooterCellTemplate not working

Angular UI Grid FooterCellTemplate not working

本文关键字:not working FooterCellTemplate Grid UI Angular      更新时间:2023-09-26

我的自定义页脚单元格模板有一些问题。

你可以看到,一些列页脚模板没有显示,我有相同的实现footerCellTemplate

这是我的ui grid columndef:

{ 
    name: 'TRAN_TYPE', 
    footerCellTemplate: '<div class="ui-grid-cell-contents">Total / Average</div>' 
},
{
    name: "ISSUED", 
    footerCellTemplate: '<div class="ui-grid-cell-contents">{{grid.appScope.Aggregator.AVG_CUST_TIME}}</div>'                
},
{ 
    name: 'SERVED', 
    footerCellTemplate: '<div class="ui-grid-cell-contents" style="background-color: Red;color: White">custom template</div>' 
},
{ 
    name: 'UNPROCESSED', 
    footerCellTemplate: '<div class="ui-grid-cell-contents" style="background-color: Red;color: White">custom template</div>' 
},

任何帮助都太好了。谢谢!

我想把(分号); css属性的结束在已服务和未处理的列

style="background-color: Red;color: White;" 

我通过刷新网格解决了这个问题。谢谢你的回复!