- Source:
- To Do:
-
- Write documentation
Members
(static) notificationTimers
- Source:
Methods
(static) hide($rowopt, callbackopt)
Hides a notification.
If a row is given, only hide that one.
If no row is given, hide all notifications.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
$row |
jQuery |
<optional> |
notification row |
callback |
function |
<optional> |
callback |
- Source:
(static) isHidden() → {boolean}
Returns whether a notification is hidden.
- Source:
Returns:
- Type
- boolean
(static) setDefault(callback)
Parameters:
Name | Type | Description |
---|---|---|
callback |
- Source:
- To Do:
-
- Write documentation
(static) show(text, optionsopt, {string) → {jQuery}
Shows a sanitized notification
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
text |
string | Message to display | ||
options |
Object |
<optional> |
options | |
{string |
[options.type] notification type | |||
options.timeout |
int |
<optional> |
0 | timeout value, defaults to 0 (permanent) |
- Source:
Returns:
jQuery element for notification row
- Type
- jQuery
(static) showHtml(html, optionsopt, {string) → {jQuery}
Shows a notification as HTML without being sanitized before.
If you pass unsanitized user input this may lead to a XSS vulnerability.
Consider using show() instead of showHTML()
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
html |
string | Message to display | ||
options |
Object |
<optional> |
options | |
{string |
[options.type] notification type | |||
options.timeout |
int |
<optional> |
0 | timeout value, defaults to 0 (permanent) |
- Source:
Returns:
jQuery element for notification row
- Type
- jQuery
(static) showTemporary(text, optionsopt, {string)
Shows a notification that disappears after x seconds, default is
7 seconds
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
text |
string | Message to show | ||||||||||||||||
options |
array |
<optional> |
options array
Properties
|
|||||||||||||||
{string |
[options.type] notification type |
- Source: