Interfaces
Snotify
title
- type:
string
Toast title
body
- type:
string
Toast content
config
- type: SnotifyToastConfig
Toast configuration object
html
- type:
string
| SafeHtmlToast html content inside
.snotifyToast__inner
SnotifyButton
text
- type:
string
Button text
action
type:
function
Signature:
( toast: SnotifyToast ) => void
Callback action which will be called on button click.
Receive SnotifyToast
bold
- type:
boolean
Should button text be bold or not
SnotifyAnimate
enter
- type:
string
In animation name
exit
- type:
string
Out animation name
time
- type:
number
Animation time in ms
SnotifyDefaults
global
- type: SnotifyGlobalConfig
Notifications dock config
toast
- type: SnotifyToastConfig
Toast config
type
- type:
{ [key: SnotifyType]: SnotifyToastConfig }
Toast type default config
Example can be found in options defaults
SnotifyStyles
Append snotify-${name} class name to snotify element
simple
- type: SnotifyType
success
- type: SnotifyType
error
- type: SnotifyType
warning
- type: SnotifyType
info
- type: SnotifyType
async
- type: SnotifyType
confirm
- type: SnotifyType
prompt
- type: SnotifyType