How to set slide-out button for the SideNav permanently


Topic: How to set slide-out button for the SideNav permanently

Dear support team,

how can I set the slide-out button for the SideNav in the navbar.component permanently, without consideration of the display size?

kind regards

Stefan


Arkadiusz Idzikowski staff answered 6 years ago

You need to add template reference variable to the sidenav element

<mdb-side-nav #sidenav><mdb-side-nav>
 
and then add toggle method on navbar button click
 
(click)="sidenav.toggle()
 
You might want to set [fixed] input to false in that case.
 

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.0.0
  • Device: MacBookPro
  • Browser: Safari
  • OS: Mac OSX
  • Provided sample code: No
  • Provided link: No