@doku-dev/doku-fragment
Version:
A new Angular UI library that moving away from Bootstrap and built from scratch.
23 lines (22 loc) • 917 B
TypeScript
import { ApplicationRef, EnvironmentInjector } from '@angular/core';
import { DokuToastRef } from './toast-ref';
import { DokuToastItem } from './toast.interface';
import * as i0 from "@angular/core";
export declare class DokuToastElementService {
private envInjector;
private appRef;
private document;
toastRefs: DokuToastRef[];
constructor(envInjector: EnvironmentInjector, appRef: ApplicationRef, document: Document);
openToast(data: DokuToastItem): DokuToastRef;
dismissAll(): void;
removeContainerElement(): void;
private createToastComponent;
private attachToastContainer;
private attachToastInContainer;
private createToastContainerElement;
private getToastContainerElement;
private registerToastRef;
static ɵfac: i0.ɵɵFactoryDeclaration<DokuToastElementService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<DokuToastElementService>;
}