AlertPlugin ⇒ Weavy.plugins.alert

Plugin for displaying alert messages.

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

Instance members

weavy.alert(message, [sticky])

Displays an alert.

Kind: instance method of AlertPlugin
ParamDefaultDescription
message : string

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 AlertPlugin
Properties
NameDefaultDescription
[className : string ]"weavy-alert-message fade in"

Default classes for the alerts

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