Skip to content

An abp module that dynamically creates menu items for Abp Web UI and Blazor Server projects in runtime.

License

Notifications You must be signed in to change notification settings

SyrnaAbp/Syrna.DynamicMenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syrna.DynamicMenu

DynamicMenu module for ABP framework.

ABP version build and test NuGet Download NuGet (with prereleases)

An abp module that dynamically creates menu items for ABP UI projects in runtime.

Dynamic Menu

File

Installation

  1. 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
  2. Add DependsOn(typeof(DynamicMenuXxxModule)) attribute to configure the module dependencies. (see how)

  3. Add builder.ConfigureDynamicMenu(); to the OnModelCreating() method in MyProjectMigrationsDbContext.cs.

  4. Add EF Core migrations and update your database. See: ABP document.

Usage

  1. Create a dynamic menu item on the management page.

  2. Refresh the page and you can see the menu item you just created.

Reference

This project based on EasyAbp DynamicMenu

Diffrences

  1. Demo project created for OpenIddict
  2. Demo project extended modules added
  3. Blazor modules added
  4. Private menu option added to MenuItems
  5. MenuItem table refactored for Auditing

About

An abp module that dynamically creates menu items for Abp Web UI and Blazor Server projects in runtime.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published