Toast Model
SnotifyToast
on
- type:
Function
Signature:
```
(
event: SnotifyEvent,
action: (toast: this) => void
) => this
```
Subscribing to toast events.
Unsubscribing automatically when toast destroyed
value
- type:
string
readonly - default:
''
It is defined only if toast type ===
prompt
. Another case it staysundefined
valid
- type:
boolean
- default:
undefined
Finds out if toast is valid or not.
Helper class to supportprompt
input validation.
ApplysnotifyToast--valid
orsnotifyToast--invalid
class names
id
- type:
number
- default:
<Automatically generated value>
SnotifyService automatically generates this uuid
title
- type:
string
- default:
null
Toast title
body
- type:
string
- default:
null
Body text content
config
- type: SnotifyToastConfig
- default:
<Automatically generated value>
Merges default config with toast type config