mirror of https://github.com/abpframework/abp.git
4 changed files with 47 additions and 6 deletions
@ -0,0 +1,19 @@ |
|||
@page |
|||
|
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Demo.Menus |
|||
@using Volo.Abp.UI.Navigation |
|||
@model Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Demo.Pages.Components.IndexModel |
|||
@{ |
|||
ViewData["Title"] = "Components"; |
|||
} |
|||
|
|||
<h1>Components</h1> |
|||
|
|||
Here is the ABP Component List |
|||
|
|||
<ul> |
|||
@foreach (var menu in (await Model._menuManager.GetAsync(StandardMenus.Main)).Items.First(x => x.Name == BasicThemeDemoMenus.Components.Root).Items) |
|||
{ |
|||
<li><a href="@menu.Url">@menu.DisplayName</a></li> |
|||
} |
|||
</ul> |
|||
@ -0,0 +1,22 @@ |
|||
using System.Linq; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Demo.Menus; |
|||
using Volo.Abp.UI.Navigation; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Demo.Pages.Components |
|||
{ |
|||
public class IndexModel : AbpPageModel |
|||
{ |
|||
public readonly IMenuManager _menuManager; |
|||
|
|||
public IndexModel(IMenuManager menuManager) |
|||
{ |
|||
_menuManager = menuManager; |
|||
} |
|||
|
|||
public void OnGet() |
|||
{ |
|||
|
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue