DynamicMenu module for ABP framework.
An abp module that dynamically creates menu items for ABP UI projects in runtime.
-
Install the following NuGet packages. (see how)
- Syrna.DynamicMenu.Application
- Syrna.DynamicMenu.Application.Contracts
- Syrna.DynamicMenu.Domain
- Syrna.DynamicMenu.Domain.Shared
- Syrna.DynamicMenu.EntityFrameworkCore
- Syrna.DynamicMenu.HttpApi
- Syrna.DynamicMenu.HttpApi.Client
- Syrna.DynamicMenu.Web
- Syrna.DynamicMenu.Blazor
- Syrna.DynamicMenu.Blazor.Server
- Syrna.DynamicMenu.Blazor.WebAssembly
-
Add
DependsOn(typeof(DynamicMenuXxxModule))
attribute to configure the module dependencies. (see how) -
Add
builder.ConfigureDynamicMenu();
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.
This project based on EasyAbp DynamicMenu
- Demo project created for OpenIddict
- Demo project extended modules added
- Blazor modules added
- Private menu option added to MenuItems
- MenuItem table refactored for Auditing