Notification
Pop-up messages for operators: a toast that closes itself, or a dialog that asks to confirm and sends the answer to your flow. A notification node has no page and no place on the grid: what it shows appears on top of whichever page each browser has open.
Try them: toasts stack per corner and pause while the pointer is over them; the error one stays until closed.
Properties
Section titled “Properties”Set in the node, and overridable per message with msg.ui:
| Property | msg.ui key |
Default | Description |
|---|---|---|---|
| Show as | kind |
toast |
toast or dialog |
| Type | type (or level) |
info |
info · success · warning · error: color and icon |
| Title | title |
Bold first line (optional) | |
| Position | position |
top-right |
Toasts: top-right · top-center · top-left · bottom-right · bottom-center · bottom-left |
| Close after | timeout |
5 |
Toasts: seconds; 0 stays until closed |
| OK button | okLabel |
OK |
Dialogs |
| Cancel button | cancelLabel |
Cancel |
Dialogs; empty for an OK-only dialog |
msg.payload = 'Recipe saved'; // the textmsg.ui = { type: 'error', title: 'Pump P-101 tripped', timeout: 0 };msg._client = { id: '…' }; // only that browser (e.g. the operator who pressed a button)msg.dismiss = true; // close everything this node is showingNotifications are not stored: a browser that opens later doesn’t see earlier ones.
Output (dialogs)
Section titled “Output (dialogs)”{ payload: 'ok', topic: 'confirm', _client: { id: 'c7f…' }, batch: 'B-7' } // or 'cancel'The rest of the input message is kept, so you can tell which question was answered. When a dialog goes to every browser, the first answer wins: the dialog closes in the other browsers and only one message is sent.
In the builder
Section titled “In the builder”Notification is in the palette under Feedback. Click it to add one; it appears in the Feedback on this dashboard list instead of on the page. Select it there to edit it in the inspector, or press the eye icon to preview it. On Apply it goes to a Feedback group in the Tessera UI flow.