https://github.com/syrnaabp/syrna.dynamicmenu
An abp module that dynamically creates menu items for Abp Web UI and Blazor Server projects in runtime.
https://github.com/syrnaabp/syrna.dynamicmenu
abp abp-framework dynamic dynamic-menu menu syrna
Last synced: about 1 month ago
JSON representation
An abp module that dynamically creates menu items for Abp Web UI and Blazor Server projects in runtime.
- Host: GitHub
- URL: https://github.com/syrnaabp/syrna.dynamicmenu
- Owner: SyrnaAbp
- License: mit
- Created: 2024-12-12T21:48:27.000Z (5 months ago)
- Default Branch: dev
- Last Pushed: 2024-12-19T23:48:50.000Z (5 months ago)
- Last Synced: 2024-12-20T00:17:22.325Z (5 months ago)
- Topics: abp, abp-framework, dynamic, dynamic-menu, menu, syrna
- Language: C#
- Homepage:
- Size: 6.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Syrna.DynamicMenu
DynamicMenu module for ABP framework.[](https://abp.io)

[](https://www.nuget.org/packages/Syrna.DynamicMenu.Application)
[](https://www.nuget.org/packages/Syrna.DynamicMenu.Application)An abp module that dynamically creates menu items for ABP UI projects in runtime.


## Installation
1. Install the following NuGet packages. ([see how](https://github.com/SyrnaAbp/SyrnaAbpGuide/blob/master/docs/How-To.md#add-nuget-packages))
* 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.WebAssembly1. Add `DependsOn(typeof(DynamicMenuXxxModule))` attribute to configure the module dependencies. ([see how](https://github.com/SyrnaAbp/SyrnaAbpGuide/blob/master/docs/How-To.md#add-module-dependencies))
1. Add `builder.ConfigureDynamicMenu();` to the `OnModelCreating()` method in **MyProjectMigrationsDbContext.cs**.
1. Add EF Core migrations and update your database. See: [ABP document](https://docs.abp.io/en/abp/latest/Tutorials/Part-1?UI=MVC&DB=EF#add-database-migration).
## 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](https://github.com/EasyAbp/Abp.DynamicMenu)
### Diffrences
1. Demo project created for OpenIddict
2. Demo project extended modules added
2. Blazor modules added
3. Private menu option added to MenuItems
4. MenuItem table refactored for Auditing