mirror of https://github.com/abpframework/abp.git
9 changed files with 8 additions and 50 deletions
@ -1,2 +1,3 @@ |
|||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
|||
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI |
|||
@addTagHelper *, AbpDesk.Web.Mvc |
|||
@ -1,22 +0,0 @@ |
|||
@using System.Threading.Tasks |
|||
@model Volo.Abp.UI.Navigation.ApplicationMenu |
|||
<h2>@Model.DisplayName</h2> |
|||
<ul> |
|||
@foreach (var menuItem in Model.Items) |
|||
{ |
|||
<li> |
|||
<a href="@menuItem.Url">@menuItem.DisplayName</a> |
|||
@if (menuItem.Items.Any()) |
|||
{ |
|||
<ul> |
|||
@foreach (var childMenuItem in menuItem.Items) |
|||
{ |
|||
<li> |
|||
<a href="@childMenuItem.Url">@childMenuItem.DisplayName</a> |
|||
</li> |
|||
} |
|||
</ul> |
|||
} |
|||
</li> |
|||
} |
|||
</ul> |
|||
@ -1,22 +0,0 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Volo.Abp.UI.Navigation; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.Views.Shared.Components.Menu |
|||
{ |
|||
//public class MenuViewComponent : ViewComponent
|
|||
//{
|
|||
// private readonly IMenuManager _menuManager;
|
|||
|
|||
// public MenuViewComponent(IMenuManager menuManager)
|
|||
// {
|
|||
// _menuManager = menuManager;
|
|||
// }
|
|||
|
|||
// public async Task<IViewComponentResult> InvokeAsync(string menuName = StandardMenus.Main, string viewName = "Default")
|
|||
// {
|
|||
// var menu = await _menuManager.GetAsync(StandardMenus.Main);
|
|||
// return View(viewName, menu);
|
|||
// }
|
|||
//}
|
|||
} |
|||
Loading…
Reference in new issue