Skip to main content

afterItemLoad

fires after loading an item

info

The event fires when you load items via the loadItems() method of Tree Collection. The method also fires if you enable the autoload property of Tree.

afterItemLoad:({ id: string | number }) => void;

Parameters:

  • id: string | number - the id of the loaded item

Example

component.data.events.on("afterItemLoad", function(id){
console.log("An ", id, " item is loaded");
});
info

In case of error, the loadError event will fire.

Change log:

added in v8.0