Posted 27 March 2018, 2:12 am EST
I am using Flexgrid. On flexgrid, i am using Format and ngStyle together but format is not working when i use ngStyle on template column.
<wj-flex-grid-column [header]="'All in coupon rate'" [binding]="'AllInCouponRate'" align="right" format="p5" [width]="220" [aggregate]="'Sum'">
<ng-template wjFlexGridCellTemplate [cellType]="'Cell'" let-cell="cell">
<div [ngStyle]="{color: cell.item.AllInCouponRate < 0? 'red' : 'darkgreen'}">
{{cell.item.AllInCouponRate|number : '1.2-5'}}
</div>
</ng-template>
</wj-flex-grid-column>