Notification
Simple modals for providing users with notifications much like the JavaScript alert()
method. Basic markdown may be used for links and formatting.
The success
notification demands no user interaction.
The info
, warning
and error
notification must be accepted by the user.
An optional second argument specifies the button text.
You can configure a callback for when the Notification gets accepted.
Notifications support basic markdown for formatting and links.
When a link is clicked, the URL will be passed along to the onlink
method. As you can see below, the URL can be just a key, it doesn't have to be real URL.
If the link should indeed link to something, make sure to provide the full protocol http(s)://
Note that all links will open in a new tab (or window, depending on the browser settings), so you should not use links in Notifications for internal navigation, at least not just yet.