문제

I need to display in ng-grid not data fields themselves, but have them interpolated to make some enumerations and error codes into text messages using functions available to the scope.

Assuming that I have typical ng-grid as here http://plnkr.co/edit/ZVm9Y13T53su3BfQ37Hn?p=preview, how I can do that?

도움이 되었습니까?

해결책

Do you mean like this? http://plnkr.co/edit/mjEQ1HPMj0pAHcG74dgA?p=preview

I created a function to translate the number to a message which is then displayed in the column instead of the actual data value.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top