string: Caption below the message (optional)
string: The background color of the notification (optional)
string: The name of an mdi icon (optional)
string: The body of the message
string: One of "top-left | top | top-right | left | center | right | bottom-left | bottom | bottom-right" (optional)
string: The color of the text (optional)
number: number of milliseconds to display the notification (optional)
string: "positive | negative | warning | info | ongoing", auto assigns appropriate color and icon. (optional)
// put a red warning message at the top of the screen for 3 seconds
{"message": "testing",
"caption": "a caption",
"position": "top",
"type": "warning",
"timeout": 3000}
// simplest form
{"message": "testing"}
Show a pop-up notificaiton to the user.