diff --git a/BlazorSortableList.Lib/SortableList.razor b/BlazorSortableList.Lib/SortableList.razor index f0b13a4..32bf755 100644 --- a/BlazorSortableList.Lib/SortableList.razor +++ b/BlazorSortableList.Lib/SortableList.razor @@ -6,7 +6,7 @@ @typeparam T -
+
@if (Items != null) { @foreach (var item in Items) diff --git a/BlazorSortableList.Lib/SortableList.razor.cs b/BlazorSortableList.Lib/SortableList.razor.cs index 313991f..57072bd 100644 --- a/BlazorSortableList.Lib/SortableList.razor.cs +++ b/BlazorSortableList.Lib/SortableList.razor.cs @@ -64,6 +64,9 @@ public partial class SortableList public bool Sort { get; set; } = true; [Parameter] public string? Style { get; set; } + + [Parameter(CaptureUnmatchedValues = true)] + public IDictionary? Attributes { get; set; } [Parameter] public RenderFragment? SortableItemTemplate { get; set; }