src/app/core/alerts/alert-config.ts
Properties |
display |
display:
|
Type : AlertDisplay
|
The display style (e.g. whether the alert has to be actively dismissed by the user) |
message |
message:
|
Type : string
|
The text of the message |
import { AlertDisplay } from "./alert-display";
export interface AlertConfig {
/** The text of the message */
message: string;
/** The type of the message
*
* - Info messages provide feedback or information to the user without any required action
* - Warning messages provide feedback about unexpected or potentially unintended events
* - Danger messages inform about errors or critical conditions that the user should not overlook
*/
type: "info" | "warning" | "danger";
/** The display style (e.g. whether the alert has to be actively dismissed by the user) */
display: AlertDisplay;
}
export interface ExtendedAlertConfig extends AlertConfig {
timestamp: Date;
}