angular2-advanced-notifications
Version:
UI and native notifications library for Angular
41 lines (40 loc) • 1.54 kB
TypeScript
import { Compiler, EventEmitter, OnChanges, OnDestroy, AfterViewInit, ViewContainerRef, ChangeDetectorRef } from '@angular/core';
import { Alert } from './alert.type';
import { AnBusService } from '../anBus.service';
export declare class anAlertItem implements OnDestroy, AfterViewInit, OnChanges {
private _dynamicModuleMeta;
private _viewContainer;
private compiler;
private anBusService;
private changeDetectorRef;
private _options;
private _showDelayTimer;
private _closeTimeoutTimer;
private _dynamicModuleType;
private _dynamicComponentType;
private _dynamicComponent;
hasDynamicTemplate: boolean;
customContainerClasses: string;
options: Alert;
onClose: EventEmitter<string>;
onAlertItemUpdates: EventEmitter<any>;
private _containerElement;
private _templateContainerRef;
constructor(_dynamicModuleMeta: any, _viewContainer: ViewContainerRef, compiler: Compiler, anBusService: AnBusService, changeDetectorRef: ChangeDetectorRef);
ngAfterViewInit(): void;
clickToClose(): void;
close(): void;
private _subscribeToUpdateListener();
private _setDelay(delay);
private _setHideTimeout(time);
private _show();
private _showNativeNotification();
private _hide();
private _setType();
private _setStyles();
private _createDynamicComponent();
private _createDynamicModule(componentType);
private _insertDynamicComponent();
ngOnChanges(): void;
ngOnDestroy(): void;
}