UNPKG

@stratio/egeo

Version:
22 lines (21 loc) 983 B
import { ComponentFactoryResolver, Type, ViewContainerRef } from '@angular/core'; import { Observable } from 'rxjs'; import { StModalConfig, StModalResponse, StModalBasicType } from './st-modal.model'; export declare class StModalService { private _cfr; private _containerRef; private dynamicModal; private notifyButtonInteraction; constructor(_cfr: ComponentFactoryResolver); container: ViewContainerRef; show(config: StModalConfig, component?: Type<any>, disabledAnimation?: boolean): Observable<StModalResponse>; showBasicModal(type: StModalBasicType, modalTitle: string, messageTitle: string, message: string, okButton: string, cancelButton?: string, maxWidth?: number, minWidth?: number, icon?: string, showCloseBtn?: boolean): Observable<StModalResponse>; close(): void; private createModal; private destroy; private bindVars; private notify; private canCreateModal; private createConfig; private checkButtons; }