Simple component for message notification.
Notify is used to alert notification floated on the screen.
Enable darklight via JavaScript:
$.notify({
title: "Hi",
content: "This is notification."
});
Options should be passed via JavaScript.
| Name | type | default | description |
|---|---|---|---|
| title | string | Notification | Set the title. You can also set element as title. |
| content | string | Set the content. You can also set element as content. | |
| position | string | right,top | Set the position. left, right, top, bottom. You can mix then up as left,top (it's same as "top,left"). |
| type | string | normal | Set notification type. normal, warning, info, error, success. |
| region | string | Set notification region. Notification will not keep out other notification if they are in same region. | |
| timeout | number | 4000 | number determining how long the notification will disappear. Set -1 for notification not auto-disappear. |
| Event | Description |
|---|---|
| callback |
It will trigger when notification created. You can get notification element as $(this).
|