@namespace OpenArchival.Blazor.CustomComponents
@using MudBlazor
@using MudExtensions
@* ChipContainer.razor *@
@typeparam T
@* Loop through and display each item as a chip *@
@foreach (var item in Items)
{
@if (DeleteEnabled)
{
@DisplayFunc(item)
} else
{
@DisplayFunc(item)
}
}
@* Render the input control provided by the consumer *@
@if (InputContent is not null)
{
@InputContent(this)
}
@SubmitButton
@code {
[Parameter]
public bool DeleteEnabled { get; set; } = true;
///