Reports API Events
ready:questionsApi
Fires when Reports API has used Questions API to render a visual report, showing the learner's responses.
You would want to be notified about this event firing to build a custom reveal when the learner's responses have loaded, for example.
Important Only applicable to the Sessions Detail by Question report.
Examples
reportsApp.getReport('my-session-detail-by-question-id')
.on('ready:questionsApi', function (questionsApp) {
console.log('This code executes when Questions API has loaded.');
console.log(questionsApp);
});
Callback arguments
-
questionsApp object
The Questions API instance used to render the report.
Related articles
- The
ready:itemsApi
event, which fires when the Items API has loaded.