Open Closed

I want to set custom breadcrumbs in angular webapplication or else i want to use the existing breadcrumbs to custom component #9500


User avatar
0
smwasimraja@gmail.com created

I want to set custom breadcrumbs in angular webapplication or else i want to use the existing breadcrumbs to custom component how do i configure


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

    To set custom breadcrumbs or use the existing breadcrumb component in your ABP Angular application (especially with Lepton X or LeptonX Lite themes), follow these steps:

    1. Import the Lepton X Breadcrumb Component:

      • Ensure you have imported the necessary Lepton X modules in your app.module.ts:
        import { LpxSideMenuLayoutModule } from '@volosoft/ngx-lepton-x/layouts';
        @NgModule({
          imports: [
            LpxSideMenuLayoutModule,
            // ...other imports
          ]
        })
        export class AppModule {}
        
    2. Use the Breadcrumb Component in Your Layout:

      • In your custom layout component's template, add the Lepton X breadcrumb component:
        <div class="lpx-breadcrumb-container">
          <lpx-breadcrumb></lpx-breadcrumb>
        </div>
        
      • This will render the default breadcrumb navigation as provided by the theme.
    3. Replace the Breadcrumb Component with a Custom One:

      • If you want to use your own custom breadcrumb component, you can replace the default one using the ABP replaceable components system:
        // In your component or module setup
        this.replaceableComponents.add({
          component: YourCustomBreadcrumbComponent,
          key: eThemeLeptonXComponents.Breadcrumb,
        });
        
      • This will instruct ABP to use your custom component wherever the breadcrumb is rendered.
    4. Customize Breadcrumb Data:

      • The breadcrumb component uses the Angular router configuration and ABP menu system to generate breadcrumbs. To customize the breadcrumb items, you can adjust your route definitions or menu providers accordingly.
    5. Reference Example:

      • For a full custom layout using Lepton X components (including breadcrumbs), see the following code structure:
        <div class="lpx-topbar-container">
          <div class="lpx-topbar">
            <div class="lpx-breadcrumb-container">
              <lpx-breadcrumb></lpx-breadcrumb>
            </div>
            <!-- other topbar content -->
          </div>
        </div>
        

    You can now either use the built-in breadcrumb or fully replace it with your own component as needed.

    Sources:

    • https://abp.io/docs/latest/ui-themes/lepton-x-lite/angular
    • https://abp.io/support/questions/4358

    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.

  • User Avatar
    0
    smwasimraja@gmail.com created

    its working

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 July 14, 2025, 11:57