overlay-ref.d.ts 577 B

12345678910111213141516
  1. import { ComponentRef } from '@angular/core';
  2. import { BasePortalHost, ComponentPortal } from '../portal/portal';
  3. /**
  4. * Reference to an overlay that has been created with the Overlay service.
  5. * Used to manipulate or dispose of said overlay.
  6. */
  7. export declare class OverlayRef {
  8. private _portalHost;
  9. constructor(_portalHost: BasePortalHost);
  10. attach(portal: ComponentPortal<any>, newestOnTop?: boolean): ComponentRef<any>;
  11. /**
  12. * Detaches an overlay from a portal.
  13. * @returns Resolves when the overlay has been detached.
  14. */
  15. detach(): void;
  16. }