T field in razor (Dropdown limited)
-
It is possible to show a certain text based on the value of the dropdown, for details see Show fixed text based on dropdown value.
-
The background color of the text can be adapted according to the dropdown value, for details see Colorize the background of the text.
<tr>
<td>@Model.T288.Label</td>
<td>
<span>@Model.T288</span>
</td>
</tr>
The code placed in a table:
<table class="table">
<thead>
</thead>
<tbody>
<tr>
<td>@Model.T288.Label</td>
<td>
<span>@Model.T288</span>
</td>
</tr>
</tbody>
</table>