Status-Widgets

status.activelist status.badge status.collapse status.log status.message status.notify status.toast


status.message

Displays a notification popup window with a message

Parameters
{{ status.message(id, item_trigger, item_message, item_timestamp, title, text, mode) }}
id
unique id for this widget
item_trigger
an item witch triggers the popup: NOT 0 open it, 0 close it
item_message
an item with the dynamic message
item_timestamp
an item with a timestamp (e.g. 2020-01-01T12:00:00.000000+01:00 or a Unix timestamp in Milliseconds)
title
a title of the messagebox
text
an additional static text
mode
the mode: 'info', 'error' (optional, default 'info')
Examples
If you flip the switch to 'on' a popup will be shown.
{{ status.message('p1', 'bath.alert.info', '', '', 'Message 1', '... with some plain text ...') }}
{{ status.message('p2', 'bath.alert.warning', 'bath.alert.text', 'bath.time', 'Message 2', '... a warning from the backend ...') }}
{{ status.message('p3', 'bath.alert.error', '', '', 'Message 3', '... can only be closed with the ok button ...', 'error') }}
Message 1
Message 2
Message 3

Message 1

... with some plain text ...

OK

Message 2

... a warning with timestamp from the backend ...

OK

Message 3

... an error can only be closed with the ok button ...

OK

Widgets

Design

Misc