The resource configuration that is used to define Google Workspace add-on content and behavior within the editors. Google Workspace add-on manifests must have all the components marked as Required if they extend the Editor.
Editors
The Google Workspace add-on manifest configuration for Editor extensions. See Extending Editors with Google Workspace add-ons for more information.
JSON representation |
---|
{ "homepageTrigger": { object (HomepageTrigger) }, "onFileScopeGrantedTrigger": { object (OnFileScopeGrantedTrigger) } } |
Fields | |
---|---|
homepageTrigger |
This trigger function creates the add-on
homepage in the
host app. This overrides
|
onFileScopeGrantedTrigger |
Required if your add-on includes behavior specific to the current
Editor document, triggered when the user authorizes the |
OnFileScopeGrantedTrigger
A configuration for a contextual trigger that fires when the add-on presents the
request file scope dialog using CardService.newEditorFileScopeActionResponseBuilder()
.requestFileScopeForActiveDocument().build();
and the user grants drive.file
scope authorization.
JSON representation |
---|
{ "runFunction": string } |
Fields | |
---|---|
runFunction |
drive.file scope is
granted. If specified, you must implement this function to build and
return an array of
Card objects for display in the add-on UI.
|