how can i use the sidenav to ONLY open on mobile? on mdb PRO


Topic: how can i use the sidenav to ONLY open on mobile? on mdb PRO

chuygonzz asked 6 years ago

Expected behavior

Actual behavior

Resources (screenshots, code snippets etc.)


Arkadiusz Idzikowski staff answered 6 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


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • 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