toolbar.d.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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 { Platform } from '@angular/cdk/platform';
  9. import { AfterViewInit, ElementRef, QueryList } from '@angular/core';
  10. import { CanColor, CanColorCtor } from '@angular/material/core';
  11. /** @docs-private */
  12. declare class MatToolbarBase {
  13. _elementRef: ElementRef;
  14. constructor(_elementRef: ElementRef);
  15. }
  16. declare const _MatToolbarMixinBase: CanColorCtor & typeof MatToolbarBase;
  17. export declare class MatToolbarRow {
  18. }
  19. export declare class MatToolbar extends _MatToolbarMixinBase implements CanColor, AfterViewInit {
  20. private _platform;
  21. private _document;
  22. /** Reference to all toolbar row elements that have been projected. */
  23. _toolbarRows: QueryList<MatToolbarRow>;
  24. constructor(elementRef: ElementRef, _platform: Platform, document?: any);
  25. ngAfterViewInit(): void;
  26. /**
  27. * Throws an exception when developers are attempting to combine the different toolbar row modes.
  28. */
  29. private _checkToolbarMixedModes;
  30. }
  31. /**
  32. * Throws an exception when attempting to combine the different toolbar row modes.
  33. * @docs-private
  34. */
  35. export declare function throwToolbarMixedModesError(): void;
  36. export {};