Topic: How to keep the side nav from collapsing by default.

cparrish pro asked 5 years ago


I'm looking for docs on how to control the collapsed state of the side nav from a hamburger on the navbar. With material, we were able to use MatDrawerToggleResult and Input mode 'push' https://material.angular.io/components/sidenav/api#MatDrawerToggleResult)

I'm trying to figure out how to duplicate this effect using MDB now.


Arkadiusz Idzikowski staff answered 5 years ago


You can set [fixed] input to false or use show and hide methods. We explained how to use them in API section of sidenav documentation:

https://mdbootstrap.com/docs/angular/navigation/sidenav/



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: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.4.1
  • Device: Desktop
  • Browser: Chrome
  • OS: Linux
  • Provided sample code: No
  • Provided link: Yes