The following grid is implemented by ng-grid.
The value of the second column, 預算階段, is P1/P1/F0/F1/F2.
According to the specification of this function, the value of the second column should be translated as bellows:
The ng-grid configuration :
We can use column filter to fulfill this requirement.
We can create a formatter to convert bugetStatus from code to description
Apply this filter to bugetStatus column in dbm003eGrid1: