API Docs for: 1.0.0
Show:

GSPCalendarSummary.Server Class

Constructor

GSPCalendarSummary.Server

()

Methods

isTrue

(
  • the
)
Boolean private

Due to the variety of ways that ServiceNow indicates "True" or "False" inside the system, this function interprets the variety of truthy values and assess if the passed value is one of them and returns false otherwise as the value is not "truthy".

Parameters:

Returns:

Boolean:

The leveled boolean value indicating if the passed value should be considered true of false.

Properties

calendar

GlideRecord | PortalCalendar

The PortalCalendar for the active service portal.

data

Object
Tracks the data to send over to the Widget in the UI. All data placed here arrives as part of the $scope.data object in the client side.

data.calendar

Object

The data to describe the basics of the current calendar such as title and description.

See the Calendar utility for the details retrieved by the getCalendarJSON method.

data.events

Object

All active events for the currently associated Calendar.

This may pose a memory issue at a future point, but the current use case lets this remain simple.

See the Calendar utility for the details retrieved by the getEvents method.

options

Object
Tracks the options provided to the Widget for its own customizations. Additional information can also be added to this object or modified as needed in the server side script.

options.limit

Number

The number of featured events to display.

Default: 5

options.nonFeatured

Boolean

Indicates if events that are not flagged as featured should be included in the list of events to display.

Default: false

sp

GlideRecord | ServicePortal

The GlideRecord for the active ServicePortal from which to pull values such as the current calendar or owner information if needed.

utility

CWTCalendarUtil

Used for retrieving necessary calendar information.