I'm beginner to Outsystem facing difficulties in designing dynamic sidemenu & header
Basically i have two issues
1. On click header menu sidemenu is loading every time (Where sidemenu is dynamic i.e it is coming form backend entities)
2. Not able align a logo on collapse sidemenu & expand
As now i want it as fixed header & expandable ,collapse side menu on click of header menu i want load sidemenu content dynamic
on click of sidemenu navigate to respective screen
I'm attaching random example screen found in internet I'm expecting this way with icons on side menu and fixed header collapse side menu on click hamburger
I'm attaching SC of our project how it is behaving on my design
1. On click on Settings Side menu is loading dynamic
a. On click Supplier Supplier Details Screen is loading and also header is refreshing
b. On click Supplier onboarding Supplier onboarding Screen is loading and also header is refreshing
Their is gap on collapse side menu i don't want that to happen
Static Entity for top menu
Static Entity for Side menu
Side Menu Block
I'm attaching .oml please help me to resolve the issue I'm facing
Advance Thanks
Guys please help me on this I'm really stuck
Hi Anush Kumar,Please refer this ,I think it may helps you,https://www.outsystems.com/forums/discussion/91203/how-to-design-menu-layout-and-page-layout/
Hi Anush Kumar,
On click header menu sidemenu is loading every time for this issue in menu2 block you're refreshing GetSideMenusByTopMenuId static entity in OnRender action so that it will reload everytime and also in SupplierDashboard block while clicking top menu you're refreshing GetTopMenus static entity.
Not able align a logo on collapse sidemenu & expand for this issue you have to use display flex property to align a items in a single row.
.header-logo {
display: flex;
justify-content: center;
align-items: center;
}
.side-menu {
width: 250px;
transition: all 0.3s ease;
.side-menu.collapsed {
width: 0px;
Then, use a client action (like JavaScript or OutSystems logic) to toggle the .collapsed class when the hamburger button is clicked.
Navigating to the Right Screen
$public.Document.location = '/SupplierDetails';
Preventing Gaps on Collapsed Side Menu
visibility: hidden;