Constructor
# new ContextController(app)
Create a context controller.
Parameters:
Name | Type | Description |
---|---|---|
app |
object
|
The app object. |
Classes
Methods
# onDataChanged(data, identifier)
Handling of new data.
Parameters:
Name | Type | Description |
---|---|---|
data |
object
|
The data to handle, typically a JavaScript object. |
identifier |
any
|
Property which handlers can use to identify the type of data. |
# sendMessageToComponent(id, message)
Send a message to a specific component.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The id of the component, which should receive the message. |
message |
any
|
The component is responsible for the interpretation of the message. |