An abp module that dynamically creates menu items for ABP UI projects in runtime.
-
Install the following NuGet packages. (see how)
- EasyAbp.Abp.DynamicMenu.Application
- EasyAbp.Abp.DynamicMenu.Application.Contracts
- EasyAbp.Abp.DynamicMenu.Domain
- EasyAbp.Abp.DynamicMenu.Domain.Shared
- EasyAbp.Abp.DynamicMenu.EntityFrameworkCore
- EasyAbp.Abp.DynamicMenu.HttpApi
- EasyAbp.Abp.DynamicMenu.HttpApi.Client
- EasyAbp.Abp.DynamicMenu.Web
-
Add
DependsOn(typeof(AbpDynamicMenuXxxModule))
attribute to configure the module dependencies. (see how) -
Add
builder.ConfigureAbpDynamicMenu();
to theOnModelCreating()
method in MyProjectMigrationsDbContext.cs. -
Add EF Core migrations and update your database. See: ABP document.
-
Create a dynamic menu item on the management page.
-
Refresh the page and you can see the menu item you just created.
- More customizable options for menu items.