Index

mmo-notification

1 symbol · generated 5 Oct 2026

element

mmo-notification

mmo-notification.jhs:1

Notification element to display a notification or a modal following the attached class

<mmo-notification></mmo-notification>
Extends
CustomShadowElement

Index

show(elements)Show a notification
alert(elements)Show a modal notification
close(value)Close the notification: it is put away, and whoever opened it hears about it.
titlethe heading of the card
headeranything else on the header line, next to the title
(default)the body
footerthe buttons under it
.modalmake the notification a modal
.onboardingmake the notification an onboarding notification
.infoset info colors for the notification
.warningset warning colors for the notification
.errorset error colors for the notification
.successset success colors for the notification

Methods3

show(elements)

mmo-notification.jhs:45

Show a notification

show(...elements)
...elements...HTMLElement- The elements to show in the notification
returnsPromiseA promise that resolves when the notification is closed

alert(elements)

mmo-notification.jhs:72

Show a modal notification

alert(...elements)
...elements...HTMLElement- The elements to show in the notification
returnsPromiseA promise that resolves when the notification is closed

close(value)

mmo-notification.jhs:85

Close the notification: it is put away, and whoever opened it hears about it.

close(value)The element stays in the dom -- a page that declares its own card reopens it with `show`. A card nobody keeps, like the toasts `MMO.app.showNotification` builds, is dropped by the one that created it, on this event.
valueany- The value to return when the notification is closed

Slots4

CSS hooks6