Trails Packages
    Preparing search index...

    Interface NotificationService

    The NotificationService allows any part of the application to emit notifications to the user.

    You can inject an instance of this service by referencing the interface name notifier.NotificationService.

    interface NotificationService {
        closeAll(): void;
        error(options: SimpleNotificationOptions): void;
        info(options: SimpleNotificationOptions): void;
        notify(options: NotificationOptions): void;
        success(options: SimpleNotificationOptions): void;
        warning(options: SimpleNotificationOptions): void;
    }

    Hierarchy (View Summary)

    Index
    • Closes all active notifications.

      Returns void

    • Emits a new notification.

      Notifications are shown by the <Notifier /> component, which must be present in your application.

      Parameters

      Returns void