Function addGlobalNotification

  • Displays a notification for an app with the given message and level, and lets you specify whether to show a close button.


    • message: string

      The message to display in the notification.

    • level: "SUCCESS" | "ERROR" | "WARNING" | "INFO"

      The level of the notification. Can be 'SUCCESS', 'ERROR', 'WARNING', or 'INFO'.

    • Optional showCloseButton: boolean = false

      Whether to show a close button on the notification. Defaults to false.

    Returns Promise<string>

    • A promise that resolves with the ID of the created notification.

Generated using TypeDoc