@angular/material/sidenav#MatSidenav TypeScript Examples

The following examples show how to use @angular/material/sidenav#MatSidenav. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: matx-sidenav-helper.directive.ts    From matx-angular with MIT License 6 votes vote down vote up
constructor(
    private matchMediaService: MatchMediaService,
    private matxSidenavHelperService: MatXSidenavHelperService,
    private matSidenav: MatSidenav,
    private mediaObserver: MediaObserver
  ) {
    // Set the default value
    this.isOpen = true;

    this.unsubscribeAll = new Subject();
  }
Example #2
Source File: app.component.ts    From CloudeeCMS with Apache License 2.0 5 votes vote down vote up
@ViewChild('sidenav', {}) public sidenav: MatSidenav;
Example #3
Source File: layout.component.ts    From angular-material-admin with MIT License 5 votes vote down vote up
@ViewChild('sidenav') sidenav: MatSidenav;
Example #4
Source File: asset-gallery.component.ts    From assetMG with Apache License 2.0 5 votes vote down vote up
@ViewChild('sideNav') sideNav: MatSidenav;
Example #5
Source File: workflow-list.component.ts    From workflow-editor with Educational Community License v2.0 5 votes vote down vote up
@ViewChild(MatSidenav, { read: MatSidenav })
  public sidenav: MatSidenav;
Example #6
Source File: matx-side-nav-toggle.directive.ts    From matx-angular with MIT License 5 votes vote down vote up
constructor(
    private mediaObserver: MediaObserver,
    @Host() @Self() @Optional() public sideNav: MatSidenav
  ) { 
  }
Example #7
Source File: matx-sidenav-helper.service.ts    From matx-angular with MIT License 5 votes vote down vote up
sidenavList: MatSidenav[];
Example #8
Source File: escape-backdrop-sidenav.component.ts    From matx-angular with MIT License 5 votes vote down vote up
@ViewChild('sidenav') sidenav: MatSidenav;