1
I have the following:
public enum RegiaoEnum
{
CENTRO = 1,
NORTE = 2,
SUL = 3,
SUDESTE = 4,
CENTROOESTE = 5
}
And the following View:
@using MeuDominio.Enums;
<div class="animate">
<table ng-table="vm.DadosParams">
<tr ng-repeat="row in $data" >
<td class="text-center col-md-3" sortable="'Nome'" data-title="'NOME'">{{row.Nome}}</td>
<td class="text-center col-md-2" sortable="'Data'" data-title="'DATA'">{{row.Data}}</td>
<td class="text-center col-md-2" sortable="'Regiao'" data-title="'REGIÃO'">@{{row.Data}}</td>
</tr>
</table>
What is needed is to display the description of the Enum in the column Region (Center, North...) instead of the value of the numerical value.
What is the name of the property that has the Enum of the region?
row.Regiao
?– Marcelo Shiniti Uchimura
And where it’s coming from
$data
?– Marcelo Shiniti Uchimura