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?

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

  • 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

  • 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

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38