Assess API Events
section:items:changing
When using vertical_element
in the items region with sections, this event is fired when the assessment first begins navigating to a batch of Items in a different section.
You would want to be notified about this event firing, because you may want to take an action between sections, such as displaying a modal window.
Examples
itemsApp.on('section:items:changing', function (sectionIndex) {
console.log('This code executes when the new batch of Items is being navigated to.');
});
Callback arguments
-
sectionIndex integer
The zero-based index of the section that is being navigated to and is yet to be made visible.
Related articles
- The
section:items:changed
event, the event that occurs after this event.