UNPKG

@c8y/ngx-components

Version:

Angular modules for Cumulocity IoT applications

35 lines 796 B
import { TemplateRef } from '@angular/core'; /** * An alert is a message show to the user. */ export interface Alert { /** * The text to display. */ text: string | TemplateRef<any>; /** * The type of the alert. */ type: 'success' | 'warning' | 'danger' | 'info' | 'system'; /** * Detailed information to display. */ detailedData?: any; /** * Timeout to auto close */ timeout?: number; /** * Allows to display alert's text as HTML. */ allowHtml?: boolean; /** * Function to call if user clicks on the detail button. */ onDetail?: () => void; /** * Function to call if user clicks on the close button. */ onClose?: () => void; } //# sourceMappingURL=alert.model.d.ts.map