Options
All
  • Public
  • Public/Protected
  • All
Menu

Module contexts/NotifyContext

This file defines context for notifying user by snackbar notification.

Interfaces

Type aliases

Functions

Type aliases

NotificationType

NotificationType: object

Type defining parameters of a single notification

Type declaration

  • message: string

    Message which should be presented to the user

  • Optional severity?: Severity

    Severity of the message, which could change for example color of the notification

Functions

Const createNotifyContext

  • Function for creating global notification context. This function should be called exactly once through the whole application. The notification context uses global event context, so it should be created after the event context.

    Parameters

    • events: EventsContext

      Global event context, which will be used by the notification context

    Returns NotifyContext

    Global notification context

Generated using TypeDoc