Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top