activityedit.saveable.changed - Events - Author API

Author API Events

activityedit:saveable:changed

Fires when the Activity editing state changes which can be either saveable or not saveable. It also fires when the Activity edit view is rendered.

You would want to be notified about this event firing, because you might want to create your own save button and change its appearance based on the possibility of saving.

Examples

authorApp.on('activityedit:saveable:changed', function (event) {
    console.log('This code executes when the save Activity editing state has changed.');
    console.log(event.data);
});

Callback arguments

  • saveable boolean

    Indicates whether the Activity can be saved.

Related articles

Was this article helpful?

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