import { ElementRef } from '@angular/core'; import { ToastrConfig, ToastrService } from 'ngx-toastr'; import { CfCoreComponent } from '../core/core.component'; import { TemplateService } from '../../services/template-service/template.service'; /** *

Alerts component is based on Ngx-toastr

*

Example of using:

*
 * <cf-alerts #myAlerts></cf-alerts>
 * 
*/ export declare class CfAlertsComponent extends CfCoreComponent { /**@hidden */ toastrService: ToastrService; /**@hidden */ elementRef: ElementRef; /** @hidden * Object of type ToastrConfig to be used in ToastrService */ options: ToastrConfig; /** @hidden * Array for aech alert ID */ private lastInserted; /**@hidden*/ cfAlertsTemplates: any; /**@hidden * Registering toastrService based on core ToastrService */ constructor(/**@hidden */ toastrService: ToastrService, /**@hidden */ elementRef: ElementRef, /**@hidden */ templateService: TemplateService); /**@hidden * Function to show alerts based on given type * @param alert alert data object * @param type alert type. Can be: info, warn, error */ ngxToastrShow(props: any, styles: any): any; /** @hidden * Function to generate alert template, properties and styling based on type (info, warning, error) */ generateNewAlert(props: any, styles: any, type: any): void; /** * Function to show info alert * @param props alert properties model object * @param styles alert styling model object */ showMessage(props: any, styles: any): void; /** * Function to show warning alert * @param props alert properties model object * @param styles alert styling model object */ showWarning(props: any, styles: any): void; /** * Function to show error alert * @param props alert properties model object * @param styles alert styling model object */ showError(props: any, styles: any): void; /** * Function to clear all alerts */ clearAll(): void; /** * Function to delete last alert */ clearLast(): void; }