Topic: Subscribing to sidenav overlay click
itay pro asked 6 years ago
itay pro answered 6 years ago
Damian Gemza staff answered 6 years ago
ngOnInit() { this.renderer.listen(this.el.nativeElement.querySelector('#sidenav-overlay'), 'click', () => { console.log('Overlay clicked'); }); }
Damian Gemza staff answered 6 years ago
@ViewChild(SidenavComponent) sidenav: SidenavComponent; @HostListener('window:resize') onresize() { console.log(this.sidenav.shown); }
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.2
- Device: NA
- Browser: NA
- OS: NA
- Provided sample code: No
- Provided link: No