using System.Reflection; using Elsa.Workflows.UIHints.CheckList; namespace Elsa.Server.Web; /// /// Provides static drop-down options for a given property. /// public class CustomCheckListOptionsProvider : CheckListOptionsProviderBase { /// protected override ValueTask> GetItemsAsync(PropertyInfo propertyInfo, object? context, CancellationToken cancellationToken) { var items = new[] { "Apple", "Banana", "Cherry" }; var selectListItems = items.Select(x => new CheckListItem(x, x)).ToList(); return new(selectListItems); } }