@stratio/egeo
Version:
Stratio egeo library of components in Angular 2
22 lines (21 loc) • 996 B
TypeScript
import { ComponentFactoryResolver, Type, ViewContainerRef } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { StModalConfig, StModalResponse, StModalType } from './st-modal.interface';
export declare class StModalService {
private _cfr;
private _containerRef;
private dynamicModal;
private notifyButtonInteraction;
constructor(_cfr: ComponentFactoryResolver);
container: ViewContainerRef;
show(config: StModalConfig, component?: Type<any>): Observable<StModalResponse>;
showDeleteConfirmation(message: string, modalTitle: string, okButton: string, cancelButton: string, qaTag?: string, modalType?: StModalType): Observable<StModalResponse>;
close(): void;
private createModal(modalConfig, component?);
private destroy();
private bindVars(modalConfig, component);
private onClose(event);
private notify(response, closeOnAccept?);
private canCreateModal(config, component?);
private createConfig(config);
}