getStatus()
Gets the current status of the Item being edited.
You would want to use this method so that you can show the Item status in your custom authoring UI, for example.
Examples
var itemStatus = authorApp.getStatus();
console.log(itemStatus);
Arguments
None.
Return value
- string
Returns the status of the current Item which can be either:
"published"
,"unpublished"
, or"archived"
.
- boolean
Returns
false
if not in the Item editor view.
Related articles
- The
setStatus()
method, which allows you to set the Activity status.