Author API Events
activityedit:items:added
Fires when the Add Items button is clicked in the Item picker of the Activity Editor.
You would want to be notified about this event firing, because you might want to perform an action in your application when an Item has been added to the Activity, for example.
Examples
authorApp.on('activityedit:item:added', function () {
console.log('This code executes when the Add Items button is clicked.');
});
Related articles
- The
activityedit:item:create
event, which fires when the Create Item button is clicked in the Activity Editor. - The
activityedit:item:edit
event, which fires when an Item reference or title is clicked in the Item list. - The
activityedit.saveable.changed
event, which fires when the save state changes for the current Activity.