notification

Creates a notification.

It accepts conent of the notification as a first argument, which can be either text or DOM node. The object produced by the function has methods show and close that change visibility of the notification. Initially notification is hidden, and you need to call its show method to display the notification

{%- call ui.util.call(show_example) -%} {%- raw %} {% set id = ui.util.id() -%}
{%- endraw %} {%- endcall %}

The second argument is an object with notification options:

{%- call ui.util.call(show_example) -%} {%- raw %} {% set id = ui.util.id() -%}
{%- endraw %} {%- endcall %}
{%- with id = ui.util.id() -%}
{%- endwith %}