File

src/app/core/alerts/alert-config.ts

Index

Properties

Properties

display
display: AlertDisplay
Type : AlertDisplay

The display style (e.g. whether the alert has to be actively dismissed by the user)

message
message: string
Type : string

The text of the message

type
type: "info" | "warning" | "danger"
Type : "info" | "warning" | "danger"

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
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;
}

results matching ""

    No results matching ""