Author API Methods
setActivityTitle()
Sets the title of the Activity being edited.
You would want to use this method so that you can programmatically set a default prefix for the title for all Activities, for example.
Examples
var hasUpdatedTitle = authorApp.setActivityTitle("My new Activity title");
console.log(hasUpdatedTitle);
Arguments
-
title string
The Activity title content.
Return value
Type boolean
Returns true
if successful.
Returns false
if unable to set the Activity title, for example, when not in the Activity editor view.
Related articles
- The
getActivityTitle()
method, which allows you to get the Activity title.