0
j.chow created
2 Answer(s)
-
0
Thanks for your solution.
I have added following code into default.cshtml and top.cshtml
@for (var i = 0; i < Model.Menu.Items.Count; i++) { var menuItem = Model.Menu.Items[i]; *** if (!menuItem.IsVisible) { continue; }*** @await Html.PartialAsync("Components/AppMenu/_UserMenuItem", new UserMenuItemViewModel { MenuItem = menuItem, MenuItemIndex = i, RootLevel = true, CurrentPageName = Model.CurrentPageName }) }