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

chuygonzz free asked 5 years ago


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



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

  • ForumUser: 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