Toasts: Success
Method success()
shows new success
toast.
Syntax
AWN.success([message,options])
Parameters
message
- optional
Defines message of the toast. Can be any valid HTML or text string. Will be set from defaults if omitted.
options
- optional
Instance of Options, which will override globals for this call
Return value
A new HTMLElement instance
Examples
Use defaults
new AWN().success()
Use custom
new AWN().success('Custom success message', {durations: {success: 0}})