Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 2.49 KB

README.md

File metadata and controls

53 lines (36 loc) · 2.49 KB

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