items.lazyload.batch - Events - Items API

Items API Events

items:lazyload:batch

Fires when a new batch of Items have been loaded.

You would want to be notified about this event firing, for example, to know whether a specific Item has loaded so that you can navigate to it.

Note This event requires the lazyload init option to be enabled.

Examples

itemsApp.on('items:lazyload:batch', function (indicesAppended) {
    console.log('This code executes when each batch of Items has completed loading.');
});

Callback arguments

  • indicesAppended array

    An array of integers containing the zero-based index of the Items that have been loaded in current batch.

Related articles

Was this article helpful?

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