alert
Alert system and components
Alert
#
Alert message settings
This namespace controls what is displayed with AlertSystem and whether it is displayed.
State variables
open: whether the menu is open or notmessage: message to displaycolor: color of the popup. Any of"success","warning","error","info".closeable: whether the popup is closeable
Source code in src/sdss_explorer/dashboard/dataclass/alert.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
update(message, color='info', closeable=True)
staticmethod
#
Submit a message
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
message to send |
required |
color
|
str
|
color of popup. Any of |
'info'
|
closeable
|
bool
|
whether the popup is closeable |
True
|
Source code in src/sdss_explorer/dashboard/dataclass/alert.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
AlertSystem()
#
Global alert system
Source code in src/sdss_explorer/dashboard/dataclass/alert.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |