- Source:
- To Do:
-
- Write documentation
Members
(static) notificationTimers :Array.<int>
array of notification timers
Type:
- Array.<int>
- 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) → {jQuery}
Shows a sanitized notification
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
text |
string | Message to display | ||||||||||||||||
options |
Object |
<optional> |
options
Properties
|
- Source:
Returns:
jQuery element for notification row
- Type
- jQuery
(static) showHtml(html, optionsopt) → {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 | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
html |
string | Message to display | ||||||||||||||||
options |
Object |
<optional> |
options
Properties
|
- Source:
Returns:
jQuery element for notification row
- Type
- jQuery
(static) showTemporary(text, optionsopt)
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
|
- Source:
(static) showUpdate(text) → {jQuery}
Updates (replaces) a sanitized notification.
Parameters:
Name | Type | Description |
---|---|---|
text |
string | Message to display |
- Source:
Returns:
JQuery element for notificaiton row
- Type
- jQuery