refactor | Added a new property to expose the ability to disable the sorting (#7360)
* Added a new property to expose the ability to disable the sorting This was because I don't want my items to be sorted by the control * Update src/clients/Elsa.Api.Client/Shared/UIHints/DropDown/SelectList.cs Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
c2d42fec32
commit
a459904e1f
|
|
@ -5,4 +5,5 @@ namespace Elsa.Api.Client.Shared.UIHints.DropDown;
|
|||
/// </summary>
|
||||
/// <param name="Items">The items.</param>
|
||||
/// <param name="IsFlagsEnum">Whether the select list represents a flags enum.</param>
|
||||
public record SelectList(ICollection<SelectListItem> Items, bool IsFlagsEnum = false);
|
||||
/// <param name="SortItems">Whether to sort the items alphabetically otherwise will just use the order provided.</param>
|
||||
public record SelectList(ICollection<SelectListItem> Items, bool IsFlagsEnum = false, bool SortItems = true);
|
||||
Loading…
Reference in a new issue