# Toast

The toast is a timed, temporary notification that displays a message at the top or bottom of the screen when triggered.

<figure><img src="/files/mTV8VNXPHZsEaWTP3uAV" alt="" width="365"><figcaption></figcaption></figure>

## Settings

All customization options in the toast widget are in the Settings tab :gear:.

### Notification type

There are 4 types of toast: `Info`, `Warning`, `Error` and `Success`. The type can be selected in the `Notification Type` dropdown and the color of each type is set in the Theme Builder.&#x20;

<figure><img src="/files/GQTtkwluEPLoC5ADnjLY" alt="" width="343"><figcaption><p>Toast types in the default theme colors</p></figcaption></figure>

The Info, Warning, Error and Success colors are the same throughout the app and across different widgets (eg. Buttons).

### Display Time

The `Display Time` is the amout of time the toast will be visible for in milliseconds. You can type the display time in the number box. The default is 3 seconds.

### Position

You can choose where the Toast appears on the screen. There are 6 options: either at the top or bottom of the screen, and right, left or center.

## Setting the Toast message

<div align="center"><figure><img src="/files/IcR264R7uJd5xuvhd7vc" alt="" width="96"><figcaption><p>Toast widget <br>in build mode</p></figcaption></figure></div>

When adding the toast widget to the app UI builder, it will look like a small message icon. The icon disappears on the deployed app or in test mode, so the location of the widget doesn't matter.&#x20;

To set the toast message, drag an output onto the widget. The only action that can be performed is "call message".

<figure><img src="/files/CO4K2FGBJoG9vNkp05hk" alt="" width="285"><figcaption></figcaption></figure>

The content of the output is the message in the toast, and the `call message` action is triggered when the output is updated.

Multiple outputs can be connected to the same toast widget, and the toast will only display the message in the output that was triggered.&#x20;

{% hint style="info" %}
**Note:** Messages that are linked to the same toast **and** are triggered at the same time will all appear stacked in the same spot. To avoid that, it's advisable to either stagger the trigger events or set up extra toasts.
{% endhint %}

## Video Demo

{% embed url="<https://www.youtube.com/watch?v=2tz0Kj0uNbY>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.heisenware.com/app-builder/build-frontend/widgets/display-widgets/toast.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
