Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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

s.naujoks@finsquare24.com free asked 6 years ago


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

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