SKYCIV.utils
This namespace provides helpful utility methods.
#
AlertsSKYCIV.utils.alert
#
Description: Create a notification that requires action.
Operation Type: Asynchronous
Params: SKYCIV.utils.alert(Object)
Object properties:
Key | Type | Accepts | Description |
---|---|---|---|
title | html | - | The title of the notification. |
content | html | - | The body of the notification. |
Sample:
alert.js
SKYCIV.utils.alert.sideNotify
#
Description: Create an alert non-intrusive notification.
Operation Type: Asynchronous
Params: SKYCIV.utils.alert.sideNotify(Object)
Object properties:
Key | Type | Accepts | Description |
---|---|---|---|
title | html | - | The title of the notification. |
body | html | - | The body of the notification. |
time | integer | - | Defaults to 5000 . The time in milliseconds to display the notificiation. |
auto_hide | boolean | true , false | If false, the user will need to dismiss the notification. |
theme | string | light , dark | Preferred settings of the user. |
Sample:
sideNotify.js
#
ReportingSKYCIV.utils.report
#
Description: Build a PDF with HTML.
Operation Type: Synchronous
Sample:
pdf_report.js
important
To make sure the CSS is included in the report, include it directly in the html_content
variable.