UNPKG

@porscheinformatik/clr-addons

Version:
28 lines (27 loc) 1.18 kB
import { ApplicationRef, ComponentFactoryResolver, Injector, TemplateRef } from '@angular/core'; import { ClrNotificationRef } from './notification-ref'; import * as i0 from "@angular/core"; export interface ClrNotificationOptions { timeout?: number; notificationType?: string; dismissable?: boolean; progressbar?: boolean; ngTemplateOutletContext?: Record<string, unknown>; } export declare class ClrNotificationService { private _injector; private _applicationRef; private _componentFactoryResolver; private _document; private elements; constructor(_injector: Injector, _applicationRef: ApplicationRef, _componentFactoryResolver: ComponentFactoryResolver, _document: Document); openNotification(content: TemplateRef<unknown> | string, options?: ClrNotificationOptions): ClrNotificationRef; private _afterClose; private _getContentRef; private _createFromTemplateRef; private _createFromString; private _attachWindowComponent; private _applyWindowOptions; static ɵfac: i0.ɵɵFactoryDeclaration<ClrNotificationService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ClrNotificationService>; }