> For the complete documentation index, see [llms.txt](https://liquid-charts.gitbook.io/liquid-charts-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://liquid-charts.gitbook.io/liquid-charts-api-docs/liquid-charts-pro-scripts-documentation/liquid-charts-pro-user-defined-indicators/notifying-the-user/6.1-creating-toast.md).

# 6.1	Creating toast

A UDI can create “toast”: a short-lived pop-up message to the user, displayed at the edge of the screen. You create toast using the UDI.createToast() function. This takes two parameters: a definition of the toast to display, and an optional callback function which receives a notification if the user clicks on the toast. For example:

```
UDI.createToast({
	title: "Band breakout",
	text: "Price is above trend band"
}, function(toastDef) {
	// User has clicked on the toast
	// toastDef parameter is the definition passed to createToast
});
```

The available options for toast are described in full in the Framework reference, but the key values are as follows:

&#x20;

| Property | Description                                                                                            |
| -------- | ------------------------------------------------------------------------------------------------------ |
| text     | Body text of the notification                                                                          |
| title    | Title for the notification. (Not compulsory.)                                                          |
| icon     | Hexadecimal code of an icon in the FontAwesome set, such as "f05a" for an info icon. (Not compulsory.) |
| lifespan | Lifespan of the toast in seconds, overriding the app's default                                         |
