alert ⇒ WeavyWidget.plugins.alert

Plugin for displaying alert messages.

Kind: global mixin
Properties
NameType
.alert()alert

Instance members

widget.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
widget.alert("Weavy is awesome!", true);

Static members

alert.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
WeavyWidget.plugins.alert.defaults = {
    className: "weavy-alert-message fade in"
};