SnackbarModel
Auto-generated from the @jbrowse/mobx-state-tree model in the source. See the developer guide for concepts. Built into JBrowse core. View source.
Adds notifications to a session: the snackbar messages on screen, and the error shown in the stack-trace dialog.
Volatiles
| Member | Description |
|---|---|
snackbarMessagesIObservableArray<SnackbarMessage> |
|
errorDialogErrorDialogState | undefined |
the error currently shown in the stack-trace dialog. Kept off the dialog queue so it can stack on top of an already-open dialog (e.g. the one whose action raised the error) instead of waiting behind it |
Getters
| Member | Description |
|---|---|
snackbarMessageSetMap<string, SnackbarMessage> |
Actions
| Member | Description |
|---|---|
| notify |
|
| notifyError |
|
setErrorDialog(state: ErrorDialogState | undefined) => void |
|
| pushSnackbarMessage |
|
popSnackbarMessage() => SnackbarMessage | undefined |
|
removeSnackbarMessage(message: string) => void |
|
removeSnackbarEntry(entry: SnackbarMessage | undefined) => void |
removes this toast, not whichever toast last had its text |