Generate package Caspian.WorkflowFramework.1.1.0-preview.1.nupkg

This commit is contained in:
2025-08-25 23:57:23 +03:30
parent fa019e6126
commit 9036156709
12 changed files with 288 additions and 119 deletions
@@ -0,0 +1,22 @@
using System.Reflection;
using Elsa.Workflows.UIHints.CheckList;
namespace Elsa.Server.Web;
/// <summary>
/// Provides static drop-down options for a given property.
/// </summary>
public class CustomCheckListOptionsProvider : CheckListOptionsProviderBase
{
/// <inheritdoc />
protected override ValueTask<ICollection<CheckListItem>> 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);
}
}