---
title: "doo.toast"
url: "https://help.tabidoo.cloud/en/article/dootoast"
language: "en"
last_updated: "2022-11-01T20:23:54.272Z"
---

# doo.toast

With Toast messages, you can display easily customizable alerts or notifications to the user.

The toast message appears in the bottom right corner and automatically disappears after a while. You can set the text and title of the toast message.

## Functions

There are four predefined functions in the `doo.toast` namespace:

#### Success

`success(text, title?)`

Show success notification. Use it for success messages to users. 

Example: 

```javascript
doo.toast.success('This is really working out.','Great job!');
```

#### ![](https://cdn-assets.productfruits.com//e300286f-99d5-4d4b-8243-37788c80b3b9)

#### Info

`info(text, title?)`

Show info notification. Use this if you need to share any progress info with the user.

Example: 

```javascript
doo.toast.info('It may take a while.','Warning');
```

![](https://cdn-assets.productfruits.com//af7f3721-d3ba-428a-a192-163bac1c2d81)

#### Warning

`warning(text, title?)`

Show warning notification.

Example: 

```javascript
doo.toast.warning('This is a warning toast message.','Warning!');
```

![](https://cdn-assets.productfruits.com//9c54fdce-7a4b-4a7d-9921-baabdfa872dc)

#### Error

`error(text,title?)`

Show error notification.

Example: 

```javascript
doo.toast.error('That did not work.','Oops!');
```

![](https://cdn-assets.productfruits.com//6b2ceebe-1000-43cc-b7d9-8b28f379e7f1)
