I have set up an app with a sidebar and inside that a panelmenu component. Now I want to make my site more responsive and I can get the side panel to behave thanks to the -collapsed modifier, I cannot get the panelmenu to change it's behaviour.
I have seen that the regular menu component collapses into a hamburger on mobile, is that also possible for the panelmenu? If not which of these options do you recommend:
Swap between a menu and panelmenu at breakpoints
Use a menu component and style it as a panelmenu for desktop views
Keep using the panelmenu and add custom styling for mobile views
Have you checked the Layout demos? You can use RadzenSidebarToggle button in combination with RadzenSidebar and RadzenPanelMenu to achieve different responsive configurations including expandable icon sidebar navigation.
That is more like it. I am using the Full height overlay Sidebar as that is the good solution for mobile in our case.
I do need some further help because I would like the sidebarExpanded to be always true on desktop. I already hid the toggle button for desktops but what would be a good solution to keep the sidebar in place on higher screen sizes? Also note that it would be changed from absolute to initial display because it needs to push the content aside and not super impose. I do not want to toggle between two sidebars and hide them with the rz-display-sm-none classes.
I see, Our issue is that we were trying to minimise custom styling but your solution works exactly what we need. Thank you for your swift answers, I know enough to proceed, thanks.
P.S. Just wondering, why do you use properties for one solution and utility classes for another? See this example: AlignItems="AlignItems.End" Class="rz-p-2"
Indeed, some of the configuration properties could simply live as utility css classes, however exposing them as a property makes visual editing quicker and straightforward. These are also usually the most configured ones.