interface AlertsApi {
    configure(config: AlertsConfig): void;
    dismiss(id: string): void;
    error(text: string, config?: AlertConfig): Alert;
    info(text: string, config?: AlertConfig): Alert;
    update(id: string, text: string): void;
    warn(text: string, config?: AlertConfig): Alert;
}

Hierarchy (view full)

Methods

  • set configuration for the alerts component

    Parameters

    • config: AlertsConfig

      alerts configuration options

    Returns void

  • create an error alert

    Parameters

    • text: string

      alert text

    • Optionalconfig: AlertConfig

      alert configuration options

    Returns Alert

    the created alert

  • create an info alert

    Parameters

    • text: string

      alert text

    • Optionalconfig: AlertConfig

      alert configuration options

    Returns Alert

    the created alert

  • change the text for an existing alert

    Parameters

    • id: string

      alert id

    • text: string

      new alert text

    Returns void

  • create a warning alert

    Parameters

    • text: string

      alert text

    • Optionalconfig: AlertConfig

      alert configuration options

    Returns Alert

    the created alert