SKYCIV.utils


This namespace provides helpful utility methods.


SKYCIV.utils.alert#

Description: Create a notification that requires action.

Operation Type: Asynchronous

Params: SKYCIV.utils.alert(Object)

Object properties:

KeyTypeAcceptsDescription
titlehtml-The title of the notification.
contenthtml-The body of the notification.

Sample:

sideNotify.js
SKYCIV.utils.alert.sideNotify({
title: 'Success โœ…',
content: 'The action has been completed!',
time: 5000,
auto_hide: true,
theme: 'dark',
});


SKYCIV.utils.alert.sideNotify#

Description: Create an alert non-intrusive notification.

Operation Type: Asynchronous

Params: SKYCIV.utils.alert.sideNotify(Object)

Object properties:

KeyTypeAcceptsDescription
titlehtml-The title of the notification.
bodyhtml-The body of the notification.
timeinteger-Defaults to 5000. The time in milliseconds to display the notificiation.
auto_hidebooleantrue, falseIf false, the user will need to dismiss the notification.
themestringlight, darkPreferred settings of the user.

Sample:

sideNotify.js
SKYCIV.utils.alert.sideNotify({
title: 'Success โœ…',
body: 'The action has been completed!',
time: 5000,
auto_hide: true,
theme: 'dark',
});