Topic: How to set slide-out button for the SideNav permanently
s.naujoks@finsquare24.com free asked 5 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
Add comment
Arkadiusz Idzikowski staff answered 5 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.
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