Assess API Events
section:changed
Fires when the learner has navigated into a new section.
You would want to be notified about this event firing so that you can execute some code based on the transition to the new section of the assessment. For example, if the learner has navigated from a math section into an English section, you may want to add or remove a calculator or line reader feature.
Examples
itemsApp.on('section:changed', function () {
console.log('This code executes when the learner has navigated into a new section.');
});
Related articles
- The
item:section:next
event, the event that occurs when the section of the assessment is about to change. - The Breaking Assessments Into Sections article which outlines how to set up and use sections within an assessment.