Toasts: Warning
Method warning()
shows new warning
toast.
Syntax
AWN.warning([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().warning()
Use custom
new AWN().warning('Custom warning message', {durations: {warning: 0}})