Open Closed

how to remove lpx-menu-filter in side nav how do i achieve that #9693


User avatar
0
smwasimraja@gmail.com created

how to remove lpx-menu-filter in side nav how do i achieve that in angular


1 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    To remove the lpx-menu-filter (the menu filter/search box) from the LeptonX Lite Angular side navigation, you need to customize or replace the sidebar component. ABP's LeptonX theme allows you to replace built-in components with your own.

    Here’s how you can achieve this:

    1. Create a Custom Sidebar Component

      • Generate a new Angular component (e.g., CustomSidebarComponent) that does not include the menu filter element.
    2. Register Your Component as a Replacement

      • In your module (e.g., app.module.ts), use the replaceableComponents provider to replace the default sidebar (navbar) with your custom component.

      Example:

    import { eThemeLeptonXComponents } from '@abp/ng.theme.lepton-x';
    
       // In your module's providers array
       this.replaceableComponents.add({
         component: CustomSidebarComponent,
         key: eThemeLeptonXComponents.Navbar,
       });
    
    1. Remove the Filter/Search Box

      • In your custom sidebar component's template, simply omit the HTML for the filter/search input.
    2. Rebuild and Run

      • Rebuild your Angular application. The sidebar will now render without the menu filter.

    This approach ensures you have full control over the sidebar's content and appearance.

    Sources:

    • https://abp.io/docs/latest/ui-themes/lepton-x-lite/angular
    • https://docs.abp.io/en/abp/latest/UI/Angular/Component-Replacement

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

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 v10.0.0-preview. Updated on September 18, 2025, 07:10