Try Install Learn Blog API Packages GitHub
Pages

Ui.Notifications

A component to display notifications.

States

notifications
:
Map(String, Tuple(Html, Number))
=
Map.empty()

A variable to track the notifications which are displayed.

Functions

notify
(
content
:
Html
duration
:
Number
)
:
Promise(Void)

Shows the given content as a notification with the given duration.

notifyDefault
(
content
:
Html
)
:
Promise(Void)

Shows the given content as a notification with default duration.

render
:
Html

Renders the notifications.