Questions API Methods
on()
Set up an event listener.
Examples
questionsApp.question('01-a__56732842-dbe1-47a6-ae48-5a126f2b13ba').on("changed", function {
console.log("The preview data was changed.");
}); // Sets up a recurring event listener for the 'changed' event with this Question.
Arguments
-
eventName string
Name of the event that you want to listen to.
-
eventCallback callback
Callback function that will be triggered whenever the event is fired.
-
context object
Execution context that will be used for
this
when the callback function is triggered.
Return value
None (undefined
).