Toasts

Show-UDToast is used to show toasts to the end user. You can show a toast message from any endpoint (dynamic) component. You cannot show toasts from Scheduled Endpoints.

Showing a Basic Toast

New-UDButton -Text "Show Toast" -OnClick {
Show-UDToast -Message "Hello"
}
Basic Toast

Customizing the Colors

New-UDButton -Text "Show Toast" -OnClick {
Show-UDToast -Message "Hello" -BackgroundColor red -MessageColor white
}
Custom Colors

Toast Title

New-UDButton -Text "Show Toast" -OnClick {
Show-UDToast -Message "World" -Title "Hello"
}
Toast with a Title

Changing Positions

New-UDButton -Text "Show Toast" -OnClick {
Show-UDToast -Message "Hello" -Position topLeft
}
Toast in the Top Left

Balloon Toast

New-UDButton -Text "Show Toast" -OnClick {
Show-UDToast -Message "Hello" -Balloon
}
Showing a balloon toast

Duration of Toasts

New-UDButton -Text "Show Toast" -OnClick {
Show-UDToast -Message "Hello" -Duration 30000
}
30 Second Toast

Transitions

New-UDButton -Text "Show Toast" -OnClick {
Show-UDToast -Message "Hello" -TransitionIn bounceInRight
}
Bounce in Transition