Starts in:
1 DAY
20 HRS
34 MIN
35 SEC
Starts in:
1 D
20 H
34 M
35 S
Open Closed

Customizing LeptonX Angular side-menu-layout #6873


User avatar
0
n.uerkmez created
  • ABP Framework version: v8.1.rc2
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue: Hi,

I want to customize the** LeptonX Angular "side-menu-layout"** as in the screenshot. But the account information and menu are only Rendered in lpx-toolbar-container selector. This selector is the part I want to remove from the layout.
I want to extract the user avatar and its menu from the toolbar then, place it where it appears on the screenshots and remove the toolbar. How can I achieve this layout?

I have already tried the solution in the following link but, it does not help to customize it as I need

https://support.abp.io/QA/Questions/4358/Creating-new-layout-and-use-lepton-x--components-in-it


8 Answer(s)
  • User Avatar
    0
    n.uerkmez created

    Any updates?

  • User Avatar
    0
    sinan created
    Support Team Angular Developer

    Hi sorry for late answer, for removing toolbar-container you can add the styles below to your global styles.scss.

    .lpx-content-container{
      margin-right: 0px;
    }
    
    .lpx-toolbar-container{
      display: none;
    }
    

    And if you want to add avatar component to under the routes. you can do as follow. But you have to play with css because it was designed for toolbar.

    import { LpxNavbarModule } from '@volo/ngx-lepton-x.core';
    import { ToolbarContainerComponent } from '@volosoft/ngx-lepton-x/layouts'
    
    LpxNavbarModule.forRoot({
      contentAfterRoutes: [ToolbarContainerComponent]
    })
    
  • User Avatar
    0
    n.uerkmez created

    It is OK. I will try it and let you know. Thanks

  • User Avatar
    0
    n.uerkmez created

    It worked. But the positioning is challenging. For example, when it's all the way down, the user menu pops up all the way down. Only the first element of the menu is seen. The logout button stays off the page. Can I make the user menu open upwards? or any other way?

  • User Avatar
    0
    sinan created
    Support Team Angular Developer

    As i have said you have to make changes and override some of the styles.

    Maybe applying this styles help you

    .lpx-context-menu{
      left: 72px;
      bottom: -50px;
    }
    
  • User Avatar
    0
    n.uerkmez created

    Thanks that is really helpful.

    Is there any way to cache ListService result for a while like in the rx.js operator SharePlay()?

  • User Avatar
    0
    sinan created
    Support Team Angular Developer

    No, there is no feature like this in list.service. You can create a singleton service and store the data in it to cache.

    I am closing the ticket, best regards.

  • User Avatar
    0
    n.uerkmez created

    Ok. Thanks

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06