Setter events
Definition:
Setter events are custom defined Ubidots events (in the JavaScript context) that allow users to programatically interact with the platform through the HTML Canvas widget. These methods are designed specifically to set different parameters on Ubidots rather than getting data.
Usage:
After declaring an instance of the Ubidots class as:
You can set a callback function on that instance for a particular event as:
Where:
Ubidots
: is the constructor of the Ubidots classubidots
: is an instance of the Ubidots classUbidotsEvent: is any of the following events available on Ubidots.
Setter events:
Event | Description | Result |
---|---|---|
| Ability to set the selected device in a Dynamic Dashboard |
|
| Ability to set the date and time range in a dashboard, dynamic or static. |
|
| Ability to turn on or off the dashboard real time update |
|
| Ability to refresh the dashboard data in all widget. |
|
| Enable, Disable, or Toggle the Dashboard into Fullscreen |
|
Go to the Examples/Interacting with dashboard data section for examples on how to use this events.
Last updated