popup.d.ts 923 B

123456789101112131415161718192021
  1. import { Injector, TemplateRef, ViewRef, ViewContainerRef, Renderer2, ComponentRef, ComponentFactoryResolver, ApplicationRef } from '@angular/core';
  2. export declare class ContentRef {
  3. nodes: any[];
  4. viewRef?: ViewRef;
  5. componentRef?: ComponentRef<any>;
  6. constructor(nodes: any[], viewRef?: ViewRef, componentRef?: ComponentRef<any>);
  7. }
  8. export declare class PopupService<T> {
  9. private _type;
  10. private _injector;
  11. private _viewContainerRef;
  12. private _renderer;
  13. private _componentFactoryResolver;
  14. private _applicationRef;
  15. private _windowRef;
  16. private _contentRef;
  17. constructor(_type: any, _injector: Injector, _viewContainerRef: ViewContainerRef, _renderer: Renderer2, _componentFactoryResolver: ComponentFactoryResolver, _applicationRef: ApplicationRef);
  18. open(content?: string | TemplateRef<any>, context?: any): ComponentRef<T>;
  19. close(): void;
  20. private _getContentRef;
  21. }