Assess API Events
items:lazyload:error
Fires when an error occurred while attempting to lazy load Items. The learner will see an error dialog with the code 20010.
You would want to be notified about this event firing, so that you can show a custom message to the learner.
Note This event requires the lazyload init option to be enabled.
Examples
itemsApp.on('items:lazyload:error', function () {
console.log('This code executes when an error has occured while loading a batch of Items.');
});
Related articles
- The
lazyloadinit option which enables lazy loading of Items. - The
items:lazyload:batchevent, the event that occurs after each batch has finished loading. - The
items:lazyload:completeevent, the event that occurs at the end of the lazy loading process.