Order tag inputs by the label
parent
c735556281
commit
b87fe92c63
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<Select Mode="tags" TItem="Guid" TItemValue="Guid" @bind-Values="@SelectedValues" OnSelectedItemsChanged="OnSelectedItemsChanged" EnableSearch>
|
<Select Mode="tags" TItem="Guid" TItemValue="Guid" @bind-Values="@SelectedValues" OnSelectedItemsChanged="OnSelectedItemsChanged" EnableSearch>
|
||||||
<SelectOptions>
|
<SelectOptions>
|
||||||
@foreach (var entity in Entities)
|
@foreach (var entity in Entities.OrderBy(OptionLabelSelector))
|
||||||
{
|
{
|
||||||
<SelectOption TItemValue="Guid" TItem="Guid" Value="@entity.Id" Label="@OptionLabelSelector.Invoke(entity)" />
|
<SelectOption TItemValue="Guid" TItem="Guid" Value="@entity.Id" Label="@OptionLabelSelector.Invoke(entity)" />
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue