mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
861 B
28 lines
861 B
using System.Threading.Tasks;
|
|
using Volo.Abp.UI.Navigation;
|
|
|
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Demo
|
|
{
|
|
public class BasicThemeDemoMenuContributor : IMenuContributor
|
|
{
|
|
public Task ConfigureMenuAsync(MenuConfigurationContext context)
|
|
{
|
|
if(context.Menu.Name == StandardMenus.Main)
|
|
{
|
|
AddMainMenuItems(context);
|
|
}
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
private void AddMainMenuItems(MenuConfigurationContext context)
|
|
{
|
|
context.Menu.AddItem(
|
|
new ApplicationMenuItem("BasicThemeDemo.Components", "Components")
|
|
.AddItem(
|
|
new ApplicationMenuItem("BasicThemeDemo.Components.Buttons", "Buttons", url: "/Components/Buttons")
|
|
)
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|