如何修改此示例以突出显示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(并运行它)