From 0ad5bd23352cc78280228004e6c81c1d21629ebc Mon Sep 17 00:00:00 2001 From: sbwalker Date: Mon, 22 Dec 2025 08:37:45 -0500 Subject: [PATCH] add ability for menu component to support arbitrary attributes --- Oqtane.Client/Themes/Controls/Theme/Menu.razor | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Oqtane.Client/Themes/Controls/Theme/Menu.razor b/Oqtane.Client/Themes/Controls/Theme/Menu.razor index 738ece1b..7af966c8 100644 --- a/Oqtane.Client/Themes/Controls/Theme/Menu.razor +++ b/Oqtane.Client/Themes/Controls/Theme/Menu.razor @@ -1,8 +1,8 @@ @namespace Oqtane.Themes.Controls -@if (ComponentType != null) +@if (_menuType != null) { - + } @code{ @@ -12,7 +12,10 @@ [Parameter] public string MenuType { get; set; } - public Type ComponentType { get; set; } + [Parameter(CaptureUnmatchedValues = true)] + public Dictionary Attributes { get; set; } = new Dictionary(); + + private Type _menuType; protected override void OnInitialized() { @@ -28,6 +31,6 @@ } } - ComponentType = Type.GetType(MenuType); + _menuType = Type.GetType(MenuType); } }