eLabSDK2.UI.Toast
Properties
showToast
Static
showToast: (message
: string
, autoclose?
: number
, onOpen?
: () => {}, onClose?
: () => {}) => void
Type declaration
(message
, autoclose?
, onOpen?
, onClose?
): void
Displays a toast message in the bottom right corner, useful for (asynchronous) action confirmations.
Parameters
Name | Type | Description |
---|---|---|
message | string | :string |
autoclose? | number | :number? number of milliseconds after which to automatically close the toast message. |
onOpen? | () => {} | :function? callback function triggered on open. |
onClose? | () => {} | :function? callback function triggered on close. |
Returns
void
© 2023 eLabNext
Updated about 1 month ago