THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
The template also has nothing special. When rendered, the component's events information is placed in the outer <div>
(div
id="component")>.
We want to update the text of <p id="result">
with the value of the origin
property of the returned JSON object when that element itself is clicked, so here's our JavaScript code, supposing we want to trigger the answer
event:
...