416
Views
6
Comments
Solved
How can I create an expandable Side menu/ Sidebar in Reactive
Question

Hi, I want to create a side menu that can collapse and expand. I have tried using the "LayoutSideMenu" but that is not 100% what I am looking for. The "LayoutSideMenu" makes the menu stretch over the top menu. I want to design it in such a way that it will display next to the "Main Content" placeholder and not stretch all the way to the top. Similar to the image I have attached below. Are there any useful Forge components that I can use, or if someone could possible provide guidance on how I can create this.

2021-11-12 04-59-31
Manikandan Sambasivam
Solution

To create a side menu that can collapse and expand without stretching over the top menu, you can either customize the existing "LayoutSideMenu" or build your own from scratch. 

  1. Use Existing Forge Components:

    • Check the OutSystems Forge for components like "Silk UI Web" or "OutSystems UI" which might have templates or patterns that can be adjusted to fit your needs.
    • Components like "SideBar" or "ResponsiveSideMenu" might also offer the flexibility you're looking for.
  2. Customize the LayoutSideMenu:

    • Start by cloning the "LayoutSideMenu" to your application so you can modify it without affecting the original component.
    • Modify the CSS and structure to prevent it from stretching over the top menu. You can adjust the CSS to make the side menu stay within the bounds of the main content.
  3. Create a Custom Side Menu

Example with OutSystems Components:

  1. Create a Web Block:

    • Create a new web block for the side menu.
    • Use a Container widget for the side menu and another for the main content.
  2. Style with CSS:

    • Add custom CSS to style the side menu and main content as described above.
  3. Toggle Button Logic:

    • Use a Button widget and On Click event to trigger the toggle functionality.
    • Add a Boolean variable to manage the collapsed state and use it to toggle classes or styles.


2022-06-22 04-45-40
Adam Gangrekar

Hello @AJ Naude, You can refer this Forge component or can take this.

Regards,

Adam Gangrekar.

2024-05-14 06-49-08
Karnika-EONE

Hi @AJ Naude

Dynamic Drop Down Menu Sample - Overview (O11) | OutSystems

Please Check this Forge Component.

Hope Its helps.

Thanks

Karnika.K 

2021-11-12 04-59-31
Manikandan Sambasivam
Solution

To create a side menu that can collapse and expand without stretching over the top menu, you can either customize the existing "LayoutSideMenu" or build your own from scratch. 

  1. Use Existing Forge Components:

    • Check the OutSystems Forge for components like "Silk UI Web" or "OutSystems UI" which might have templates or patterns that can be adjusted to fit your needs.
    • Components like "SideBar" or "ResponsiveSideMenu" might also offer the flexibility you're looking for.
  2. Customize the LayoutSideMenu:

    • Start by cloning the "LayoutSideMenu" to your application so you can modify it without affecting the original component.
    • Modify the CSS and structure to prevent it from stretching over the top menu. You can adjust the CSS to make the side menu stay within the bounds of the main content.
  3. Create a Custom Side Menu

Example with OutSystems Components:

  1. Create a Web Block:

    • Create a new web block for the side menu.
    • Use a Container widget for the side menu and another for the main content.
  2. Style with CSS:

    • Add custom CSS to style the side menu and main content as described above.
  3. Toggle Button Logic:

    • Use a Button widget and On Click event to trigger the toggle functionality.
    • Add a Boolean variable to manage the collapsed state and use it to toggle classes or styles.


2024-07-12 05-57-50
Gourav Shrivastava
Champion

Hello AJ Naude ,

I have made one sample hope it will help you.

I used sidebar block from OutSystemsUI 

Thanks 

Regards Gourav Shrivastava

SIdeBar.oml
2025-12-02 06-55-05
AJ Naude

Thanks for the input guys, it was really helpful

2024-05-14 06-49-08
Karnika-EONE

Hi @Aj Naude

Please mark the solution which is helpful to You..It will be helpful to others to refer


Thanks

Karnika.K

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.