【发布时间】:2013-05-28 07:32:06
【问题描述】:
如何修改此示例以突出显示green for > 30、red for < 20 和orange for remainder?
$scope.gridOptions = {
data: 'myData',
rowTemplate: '<div style="height: 100%" ng-class="
{green: row.getProperty(\'age\') < 30}">
<div ng-repeat="col in visibleColumns()"
class="ngCell col{{$index}} {{col.cellClass}}"ng-cell>
</div>
</div>'
};
官方plnkr for the code(并运行它)
【问题讨论】:
标签: javascript css validation angularjs conditional