Items API Events
items:fetch
Fires when a fetch action for a new batch of Items has begun, using the addItems
public method.
You would want to be notified about this event firing so that you can know when dynamic Items are being fetched using adaptive and dynamic assessments so that you can keep track of the navigation state in your own application, for example.
Examples
itemsApp.on('items:fetch', function () {
console.log('This code executes when a fetch action for a new batch of Items has begun.');
});
Related articles
- The
items:fetch:done
event, the event that occurs when a batch of Items has been fetched successfully. - The
items:fetch:error
event, the event that occurs when a fetch action for a batch of Items has failed. - The Building Item Branching Assessments article for more information on dynamic assessments.