src/app/core/alerts/alert-config.ts
Properties |
| timestamp |
timestamp:
|
Type : Date
|
|
Defined in src/app/core/alerts/alert-config.ts:37
|
| display |
display:
|
Type : AlertDisplay
|
|
Defined in src/app/core/alerts/alert-config.ts:33
|
|
The display style (e.g. whether the alert has to be actively dismissed by the user) |
| message |
message:
|
Type : string
|
|
Defined in src/app/core/alerts/alert-config.ts:22
|
|
The text of the message |
| type |
type:
|
Type : "info" | "warning" | "danger"
|
|
Defined in src/app/core/alerts/alert-config.ts:30
|
|
The type 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;
}