Open Closed

Customize nav-items #2260


User avatar
0
edelivery created
  • ABP Framework version: v4.4.0

  • UI type: Angular

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): yes

  • Exception message and stack trace:

  • Steps to reproduce the issue:
    Hi all
    I want to hide Linked account,My account, Security log in nav item. How can I do that?
    image.png


6 Answer(s)
  • User Avatar
    0
    bunyamin created

    Hello,

    You can replace nav-items by following the instructions listed in the docs

    Instead of

    import { eThemeBasicComponents } from '@abp/ng.theme.basic';

    use the following the enum

    import { eThemeLeptonComponents } from @volo/abp.ng.theme.lepton;

    and use eThemeLeptonComponents.NavItems to replace the nav items.

  • User Avatar
    0
    edelivery created

    Hello,

    You can replace nav-items by following the instructions listed in the docs

    Instead of

    import { eThemeBasicComponents } from '@abp/ng.theme.basic';

    use the following the enum

    import { eThemeLeptonComponents } from @volo/abp.ng.theme.lepton;

    and use eThemeLeptonComponents.NavItems to replace the nav items.

    I have tried this but when click admin it doesn't show anything
    image.png
    image.png
    image.png

  • User Avatar
    0
    bunyamin created

    Could you share the code of NavItemsComponent? Both html and ts files.

  • User Avatar
    0
    edelivery created

    Could you share the code of NavItemsComponent? Both html and ts files.

    I just copy code from html and ts file in your document
    image.png
    image.png

  • User Avatar
    0
    bunyamin created

    It seems that ngbDropdownMenu directive is missing from<div class="dropdown-menu">. If you add it, it should open.

  • User Avatar
    0
    edelivery created

    thanks bunyamin! It's worked

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on May 28, 2025, 08:51