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:
Byron Mayne 2026-04-15 08:15:31 -04:00 committed by GitHub
parent c2d42fec32
commit a459904e1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);