javascript - Angular UI 网格 FooterCellTemplate 不起作用

标签 javascript angularjs angular-ui-grid ui-grid

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

As you can see, some of the column footer templates are not showing up, I have identical implementation of footerCellTemplate

这是我的用户界面网格列定义:

{ 
    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>' 
},

任何帮助都会很棒。谢谢!

最佳答案

我认为在 SERVED 和 UNPROCESSED 列中放置(分号); css 属性结尾

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

关于javascript - Angular UI 网格 FooterCellTemplate 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38853853/

相关文章:

javascript - 将 CSS 样式应用于动态创建的 DIV

javascript - Angular UI Grid 重新加载单元格模板

javascript - 在两个 promise 在 angularJS 中解决后调用函数,一个使用另一个的结果

angularjs - AngularUI ui-select2 导致 "select"变脏

javascript - AngularJS编译后调用compile

angularjs - 在 Angular ui网格中设置列宽

javascript - ui-grid,滚动时出错

javascript - 将随机数据从 JSON 文件加载到 HTML 中?

javascript - 定义模块并立即使用 RequireJS

javascript - 使用html和js的移动应用程序的存储空间