ng2-modal-module
Version:
bootstrap modal component adjusted for angular2+ framework based on rx-pubsub service. NO jQuery!
34 lines (33 loc) • 1.3 kB
TypeScript
import { ComponentRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
import { ComponentInjector } from 'component-injector';
import { Subscription } from 'pubsub-distinct';
export declare class Ng2ModalWindowComponent implements OnInit, OnDestroy {
protected componentInjector: ComponentInjector;
modalWindow: ElementRef;
injectContainer: ViewContainerRef;
animationClass: string;
protected showModalClass: string;
protected bodyOpenModalClass: string;
protected eventSubscriber: Subscription;
protected injectedComponentRef: ComponentRef<any>;
protected defaultProperties: any;
properties: any;
protected eventName: string;
constructor(componentInjector: ComponentInjector);
id: string;
ngOnInit(): void;
ngOnDestroy(): void;
cancelAction(): void;
successAction(): void;
overlayClick(): void;
protected show(): void;
protected hide(): void;
protected subscribeToEvent(): void;
protected initModal(properties: any): void;
protected unsubscribe(): void;
protected injectComponent(componentSelector: string): ComponentRef<any>;
protected setComponentProperties(): void;
private resetInjectedComponent;
private setProperties;
private resetModalEventSubscriber;
}