Toasts: Tip

Method tip() shows new tip toast.

Syntax

AWN.tip([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().tip()

Use custom

new AWN().tip('Custom tip message', {durations: {tip: 0}})