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

Also note: this document represents the state model API for the current released version of jbrowse. If you are not using the current version, please cross reference the markdown files in our repo of the checked out git tag

Source code

GitHub page

Docs

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