ui/utilities

ui/utilities

Methods

(static) exports.dateDiffInDays(a, b) → {number}

Source:

Returns the difference of two timestamps in days.

Parameters:
Name Type Description
a

timestamp.

b

timestamp.

Returns:
Type
number

(static) exports.getAllElementsWithAttribute(attribute, value) → {Array}

Source:

Returns the Elements in the DOM with the given attribute and value.

Parameters:
Name Type Description
attribute

The div attribute

value

the value.

Returns:
Type
Array

(static) exports.getExplorerUserID()

Source:

Returns the explorerUserName portion of the route.

(static) exports.isInRole(role) → {boolean}

Source:

Returns true if the current user (i.e. from the URL, not necessarily Meteor.user) has the specified role.

Parameters:
Name Type Description
role

The role of interest.

Returns:

True if the user has that role.

Type
boolean

(static) exports.isLabel()

Source:

True if label is equal to value.
(Why is this a thing?)

(static) exports.opportunitySemesters(opportunityInstance) → {Array}

Source:

Returns an array of strings naming the upcoming semesters associated with the passed opportunity instance.

Parameters:
Name Type Description
opportunityInstance

The opportunity instance

Returns:

An array of semester strings.

Type
Array

(static) exports.removeElement(id)

Source:

Removes the element with the given id from the document.

Parameters:
Name Type Description
id

the id of the Element.