Open Closed

How to show/hide menu items depending on current module selection ? #2219


User avatar
0
sateesh@g1.com.my created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v4.4.4
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

How to show/hide menu items depending on current module selection ?

I have 2 different modules (module1 - 2 menu items, module2 - 4 menu items). In home screen customer will select module.

I need to display module menus only Depending on module selection


1 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    This is a custom business logic. You can define a Setting for that selection, even you can make it user based setting since setting management has a UserSettingValueProvider

    Then, you can go your each of module's MenuContributor and check that option to decide adding that MenuItem.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15