alert ⇒ Weavy.plugins.alert

Plugin for displaying alert messages.

Kind: global plugin
Properties
NameType
.alert()weavy.alert

Instance members

weavy.alert(message, [sticky])

Displays an alert.

Kind: instance method of alert
ParamTypeDefaultDescription
messagestring

The message to display

[sticky]boolean false

Should the alert be sticky and not dismissable?

Example
weavy.alert("Weavy is awesome!", true);

Static members

.defaults : Object

Default plugin options

Kind: static property of alert
Properties
NameTypeDefaultDescription
[className]string "weavy-alert-message fade in"

Default classes for the alerts

Example
Weavy.plugins.alert.defaults = {
    className: "weavy-alert-message fade in"
};