You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$.jGrowl("A message with a header", { header: 'Important' });
27
-
// Sample 4
28
-
$.jGrowl("A message that will live a little longer.", { life: 10000 });
29
-
// Sample 5
30
-
$.jGrowl("A message with a beforeOpen callback and a different opening animation.", {
31
-
beforeClose: function(e,m) {
32
-
alert('About to close this notification!');
33
-
},
34
-
animateOpen: {
35
-
height: 'show'
36
-
}
37
-
});
26
+
```js
27
+
// Sample 1
28
+
$.jGrowl("Hello world!");
29
+
// Sample 2
30
+
$.jGrowl("Stick this!", { sticky:true });
31
+
// Sample 3
32
+
$.jGrowl("A message with a header", { header:'Important' });
33
+
// Sample 4
34
+
$.jGrowl("A message that will live a little longer.", { life:10000 });
35
+
// Sample 5
36
+
$.jGrowl("A message with a beforeOpen callback and a different opening animation.", {
37
+
beforeClose:function(e,m) {
38
+
alert('About to close this notification!');
39
+
},
40
+
animateOpen: {
41
+
height:'show'
42
+
}
43
+
});
44
+
```
38
45
39
46
## Configuration Options
40
47
| Option | Default | Description |
@@ -63,4 +70,4 @@ Install with
63
70
| beforeClose | function(e,m,o) {} | Callback to be used before a new notification is closed. This callback receives the notification's DOM context, the notifications message and it's option object. |
64
71
| close | function(e,m,o) {} | Callback to be used when a new notification is closed. This callback receives the notification's DOM context, the notifications message and it's option object. |
65
72
| animateOpen | { opacity: 'show' } | The animation properties to use when opening a new notification (default to fadeOut). |
66
-
| animateClose | { opacity: 'hide' } | The animation properties to use when closing a new notification (defaults to fadeIn). |
73
+
| animateClose | { opacity: 'hide' } | The animation properties to use when closing a new notification (defaults to fadeIn). |
0 commit comments