UNPKG

@asi-ngtools/lib

Version:

This project is a little components library, simple to use, which will help you to simplify your project.

19 lines (18 loc) 927 B
import { Observable } from 'rxjs'; import { AsiNotification } from '../notification/asi-notification.component'; import { AsiNotificationPosition, AsiNotificationConfig } from '../asi-notification-config'; import { ViewContainerRef, ComponentRef } from '@angular/core'; export declare class AsiNotificationContainer { viewContainerRef: ViewContainerRef; class: string; private _position; private subjectContainer; notifications: Array<ComponentRef<AsiNotification<any>>>; constructor(viewContainerRef: ViewContainerRef); setPosition(position: AsiNotificationPosition): void; getPosition(): AsiNotificationPosition; onContainerEmpty(): Observable<AsiNotificationContainer>; addNotification(componentRef: ComponentRef<AsiNotification<any>>, config: AsiNotificationConfig): void; removeNotification(componentRef: ComponentRef<AsiNotification<any>>): void; updatePosition(): void; }