Skip to main content

Description

Twigkit service for setting and getting responses.

Methods

clearResponses()

Removes all responses from the factory.

Example

createResponseFromResults(results)

Creates a response object from the set of results you provide
Parameters
Returns

Example

getResponse(name, keys)

Gets response from the factory.
Parameters
Returns

Example

setResponse(name, value)

Adds response to response factory for retrieval using the getResponse method. Broadcasts an event of ‘responsename_updated’ with the new response value.
Parameters

Example