Get script type select label from display name attribute
This commit is contained in:
parent
6df312ef2b
commit
ddcaafdbaf
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,9 @@
|
|||
</FormItem>
|
||||
|
||||
<FormItem Label="Type">
|
||||
<Select @bind-Value="context.Type" TItem="ScriptType" TItemValue="ScriptType" DataSource="Enum.GetValues<ScriptType>()" />
|
||||
<Select @bind-Value="context.Type" TItem="ScriptType" TItemValue="ScriptType" DataSource="Enum.GetValues<ScriptType>()">
|
||||
<LabelTemplate Context="Value">@Value.GetDisplayName()</LabelTemplate>
|
||||
</Select>
|
||||
</FormItem>
|
||||
|
||||
<FormItem>
|
||||
|
|
Loading…
Add table
Reference in a new issue