GwtMaterialDesign / gwt-material-table

A complex table component designed for the material design specifications
https://gwtmaterialdesign.github.io/gmd-table-demo/
Apache License 2.0
27 stars 31 forks source link

how to autocollapse a sidenavbar on mobile #152

Closed Magallo closed 6 years ago

Magallo commented 6 years ago

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.

Magallo commented 6 years ago

Sorry, this is not a question related to MaterialDataTable, I remove it and I will post it in gwt-material.