Topic: how can i use the sidenav to ONLY open on mobile? on mdb PRO
Expected behavior
Actual behavior
Resources (screenshots, code snippets etc.)
Arkadiusz Idzikowski staff answered 5 years ago
You can listen to window resize event and use sidenav 'hide()' method to hide it on specific devices. Please take a look at API section in sidenav documentation:
https://mdbootstrap.com/docs/angular/navigation/sidenav/#a-methods
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.5.1
- Device: mac
- Browser: chrome
- OS: mac os
- Provided sample code: No
- Provided link: No