AboutSupportDeveloper GuideVersion 22.3.18

Event fired whenever the notification has been closed.

This event is fired regardless of how the notification was closed - i.e.: via a call to clear/clearAll, the notification expiring, or by a user clicking either the notification itself, the notification's close button, or a button on the notification.

"notification-closed"

interface NotificationClosedEvent {
    notification: Readonly<Required<Omit<TemplateMarkdown, "buttons"> | Omit<TemplateList, "buttons"> | Omit<TemplateCustom, "buttons">> & {
        buttons: readonly Required<ButtonOptions>[];
    }>;
    type: "notification-closed";
}

Properties

Properties

notification: Readonly<Required<Omit<TemplateMarkdown, "buttons"> | Omit<TemplateList, "buttons"> | Omit<TemplateCustom, "buttons">> & {
    buttons: readonly Required<ButtonOptions>[];
}>

The notification that has just been closed.

This object will match what is returned from the create call when the notification was first created.

type