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); } }