systelab-components
Version:
systelab-components is a set of components that use wide accepted and adopted standard technologies like Angular and Bootstrap, as well as other popular libraries. Please read the ATTRIBUTION.md file for a complete list of dependencies.
25 lines (24 loc) • 879 B
TypeScript
import { Injector } from '@angular/core';
import { Overlay } from '@angular/cdk/overlay';
import { ToastConfig } from './toast-config';
import * as i0 from "@angular/core";
export declare class ToastService {
private config;
private overlay;
private parentInjector;
private _lastToast;
private _config;
constructor(config: any, overlay: Overlay, parentInjector: Injector);
setConfig(config: ToastConfig): void;
getConfig(): ToastConfig;
showError(text: string): void;
showWarning(text: string): void;
showInformation(text: string): void;
showSuccess(text: string): void;
private show;
private getPositionStrategy;
private getPosition;
private getInjector;
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, [{ optional: true; }, null, null]>;
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
}