sidenav.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. import { ChangeDetectorRef, QueryList, ElementRef, NgZone } from '@angular/core';
  9. import { MatDrawer, MatDrawerContainer, MatDrawerContent } from './drawer';
  10. import { ScrollDispatcher } from '@angular/cdk/scrolling';
  11. export declare class MatSidenavContent extends MatDrawerContent {
  12. constructor(changeDetectorRef: ChangeDetectorRef, container: MatSidenavContainer, elementRef: ElementRef<HTMLElement>, scrollDispatcher: ScrollDispatcher, ngZone: NgZone);
  13. }
  14. export declare class MatSidenav extends MatDrawer {
  15. /** Whether the sidenav is fixed in the viewport. */
  16. fixedInViewport: boolean;
  17. private _fixedInViewport;
  18. /**
  19. * The gap between the top of the sidenav and the top of the viewport when the sidenav is in fixed
  20. * mode.
  21. */
  22. fixedTopGap: number;
  23. private _fixedTopGap;
  24. /**
  25. * The gap between the bottom of the sidenav and the bottom of the viewport when the sidenav is in
  26. * fixed mode.
  27. */
  28. fixedBottomGap: number;
  29. private _fixedBottomGap;
  30. }
  31. export declare class MatSidenavContainer extends MatDrawerContainer {
  32. _drawers: QueryList<MatSidenav>;
  33. _content: MatSidenavContent;
  34. }