Pregunta

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?

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top