Skip to main content

Toast

Development

Examples

Basic

PreviewAngularReactVueJavaScript

Custom toast message

PreviewAngularReactVueJavaScript

Position

Since 1.5.0
PreviewAngularReactVueJavaScript

API

ToastService

NameDescriptionSignature
showShow new toast

show(config: ToastConfig): Promise<{ onClose: TypedEvent<any>, close: (result?: any) => void}>

ToastConfig

NameDescriptionTypeDefault
autoClose
Autoclose behavior
booleantrue
autoCloseDelay
Autoclose title after delay
number5000
icon
Icon of toast
stringundefined
iconColor
Icon color of toast
stringundefined
message
Toast message
string | TempateRef<any>undefined
title
Toast title
stringundefined
type
Toast type
"error" | "info" | "success" | "warning""info"