menu-content.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 { ApplicationRef, ChangeDetectorRef, ComponentFactoryResolver, Injector, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
  9. import { Subject } from 'rxjs';
  10. /**
  11. * Menu content that will be rendered lazily once the menu is opened.
  12. */
  13. export declare class MatMenuContent implements OnDestroy {
  14. private _template;
  15. private _componentFactoryResolver;
  16. private _appRef;
  17. private _injector;
  18. private _viewContainerRef;
  19. private _document;
  20. private _changeDetectorRef?;
  21. private _portal;
  22. private _outlet;
  23. /** Emits when the menu content has been attached. */
  24. _attached: Subject<void>;
  25. constructor(_template: TemplateRef<any>, _componentFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef, _injector: Injector, _viewContainerRef: ViewContainerRef, _document: any, _changeDetectorRef?: ChangeDetectorRef | undefined);
  26. /**
  27. * Attaches the content with a particular context.
  28. * @docs-private
  29. */
  30. attach(context?: any): void;
  31. /**
  32. * Detaches the content.
  33. * @docs-private
  34. */
  35. detach(): void;
  36. ngOnDestroy(): void;
  37. }