From 1b03640afc785eeef504458d7cd1c2bb5e68c466 Mon Sep 17 00:00:00 2001 From: Bruno Date: Sat, 21 Dec 2024 16:16:28 +0100 Subject: [PATCH] Added attribute splatting to SortableList --- BlazorSortableList.Lib/SortableList.razor | 2 +- BlazorSortableList.Lib/SortableList.razor.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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; }