Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top