section.items.changed - Events - Assess API

Assess API Events

section:items:changed

When using vertical_element in the items region with sections, this event is fired when the assessment has finished navigating to the batch of Items in a different section.

You would want to be notified about this event firing, because you may want to perform an external action when the Item has changed, such as starting a third-party service.

Examples

itemsApp.on('section:items:changed', function (sectionIndex) {
    console.log('This code executes when the new batch of Items has been navigated to.');
});

Callback arguments

  • sectionIndex integer

    The zero-based index of the section that has been navigated to and is now visible.

Related articles

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.