Skip to main content

SnackbarModel

Note: this document is automatically generated from mobx-state-tree objects in our source code. See Core concepts and intro to pluggable elements for more info

Source file

packages/core/ui/SnackbarModel.tsx

SnackbarModel - Getters

getter: snackbarMessageSet

// type
Map<string, SnackbarMessage>

SnackbarModel - Actions

action: notify

// type signature
notify: (message: string, level?: NotificationLevel, action?: SnackAction) => void

action: notifyError

// type signature
notifyError: (errorMessage: string, error?: unknown, extra?: unknown) => void

action: pushSnackbarMessage

// type signature
pushSnackbarMessage: (message: string, level?: NotificationLevel, action?: SnackAction) => void

action: popSnackbarMessage

// type signature
popSnackbarMessage: () => SnackbarMessage

action: removeSnackbarMessage

// type signature
removeSnackbarMessage: (message: string) => void