Author API Events
activityedit:item:create
Fires when the Create Item button is clicked in 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 the Item creation UI appears, for example.
Examples
authorApp.on('activityedit:item:create', function () {
console.log('This code executes when the Create Item button is clicked.');
});
Related articles
- The
activityedit:item:edit
event, which fires when an Item reference or title is clicked in the Item list. - The
activityedit:items:added
event, which fires when the Add Items button is clicked in the Item picker. - The
activityedit.saveable.changed
event, which fires when the save state changes for the current Activity.