ui/components/shared

ui/components/shared

Methods

(static) appendToLog(instance, message)

Source:

Appends the passed message to the reactive variable holding the log text.

Parameters:
Name Type Description
instance

The template instance.

message

The message to be appended to the log.

(static) exports.getRouteUserName()

Source:

Returns the username portion of the route.
Returns the username for all routes except the landing page.

(static) exports.getUserIdFromRoute()

Source:

Returns the userID from the route to the current page.

(static) getSchemaDataFromEvent(schema, event) → {Object}

Source:

Return the data from the submitted form corresponding to the fields in the passed schema.

Parameters:
Name Type Description
schema

The simple schema.

event

The event holding the form data.

Returns:

An object whose keys are the schema keys and whose values are the corresponding form values.

Type
Object