Is there a way to auto collapse the sidenavbar when the horizontal size of the window is too small and the main content of the page is greyed (e.g. on mobile)?
I explain better: I am building an app with a skeleton similar to the showcase with a MaterialSideNavPush on the left of the screen and the rest of the screen is left for the main content which depends on what the user chooses in the side navigation panel. The left navigation panel is opened and showed by design. Using the smartphone (or resizing the browser to a very small page), the navigation panel is collapsed automatically and the user must interact with the menu icon to open it. When you open it, the main content is automatically greyed until you don't collapse again the side panel clicking again on the menu button. This is ok, but what I would like is something so that when the user chooses an item in the side panel, the main content changes and automatically the side panel collapses again showing the main content and auto hiding the side panel.
Is there a way to auto collapse the sidenavbar when the horizontal size of the window is too small and the main content of the page is greyed (e.g. on mobile)?
I explain better: I am building an app with a skeleton similar to the showcase with a MaterialSideNavPush on the left of the screen and the rest of the screen is left for the main content which depends on what the user chooses in the side navigation panel. The left navigation panel is opened and showed by design. Using the smartphone (or resizing the browser to a very small page), the navigation panel is collapsed automatically and the user must interact with the menu icon to open it. When you open it, the main content is automatically greyed until you don't collapse again the side panel clicking again on the menu button. This is ok, but what I would like is something so that when the user chooses an item in the side panel, the main content changes and automatically the side panel collapses again showing the main content and auto hiding the side panel.