Author API Methods
setItemTitle()
Sets the title of the Item being edited.
You would want to use this method so that you programatically set the Item title, for example.
Examples
var hasUpdatedTitle = authorApp.setItemTitle("My Item title");
console.log(hasUpdatedTitle);
Arguments
-
title string
The title for the Item.
Return value
Type boolean
Returns true
if successful.
Returns false
if unable to set the Item title, for example, when not in the Item editor view or the passed value is not valid.
Related articles
- The
getItemTitle()
method, which allows you to get the Item title.