Package google.apps.script.type.docs
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
DocsAddOnManifest
Proprietà che personalizza l'aspetto e l'esecuzione di un componente aggiuntivo di Documenti Google.
DocsExtensionPoint
Formato comune per dichiarare gli attivatori di un componente aggiuntivo di Documenti.
Campi |
runFunction |
string
Obbligatorio. L'endpoint da eseguire quando questo punto di estensione è attivato.
|
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-04-22 UTC.
[null,null,["Ultimo aggiornamento 2025-04-22 UTC."],[[["\u003cp\u003e\u003ccode\u003eDocsAddOnManifest\u003c/code\u003e customizes the appearance and execution of Google Docs add-ons, including homepage configuration, file scope authorization, link previews, and third-party resource creation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDocsExtensionPoint\u003c/code\u003e defines a common format for Google Docs add-on triggers, specifying the endpoint function to execute when activated.\u003c/p\u003e\n"],["\u003cp\u003eThe manifest includes triggers for various events like homepage access, file authorization, link previews, and actions to create third-party resources.\u003c/p\u003e\n"],["\u003cp\u003eEach extension point within the manifest specifies a \u003ccode\u003erunFunction\u003c/code\u003e which is the Apps Script function to be executed upon triggering the extension point.\u003c/p\u003e\n"]]],["The provided content details the `DocsAddOnManifest` and `DocsExtensionPoint` for customizing Google Docs add-ons. `DocsAddOnManifest` properties include: `homepageTrigger` to override common homepage settings, `onFileScopeGrantedTrigger` to execute code upon file scope authorization, `linkPreviewTriggers` for link previews, and `createActionTriggers` for creating external resources. `DocsExtensionPoint` has a `runFunction` field, specifying the endpoint triggered upon activation. These components define how add-ons appear and function within Google Docs.\n"],null,["# Package google.apps.script.type.docs\n\nIndex\n-----\n\n- [DocsAddOnManifest](/workspace/add-ons/reference/rpc/google.apps.script.type/docs#google.apps.script.type.docs.DocsAddOnManifest) (message)\n- [DocsExtensionPoint](/workspace/add-ons/reference/rpc/google.apps.script.type/docs#google.apps.script.type.docs.DocsExtensionPoint) (message)\n\nDocsAddOnManifest\n-----------------\n\nProperties customizing the appearance and execution of a Google Docs add-on.\n\n| Fields ||\n|-----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `homepageTrigger` | [HomepageExtensionPoint](/workspace/add-ons/reference/rpc/google.apps.script.type#google.apps.script.type.HomepageExtensionPoint) If present, this overrides the configuration from `addOns.common.homepageTrigger`. |\n| `onFileScopeGrantedTrigger` | [DocsExtensionPoint](/workspace/add-ons/reference/rpc/google.apps.script.type/docs#google.apps.script.type.docs.DocsExtensionPoint) Endpoint to execute when file scope authorization is granted for this document/user pair. |\n| `linkPreviewTriggers[]` | [LinkPreviewExtensionPoint](/workspace/add-ons/reference/rpc/google.apps.script.type#google.apps.script.type.LinkPreviewExtensionPoint) A list of extension points for previewing links in a Google Docs document. For details, see [Preview links with smart chips](https://developers.google.com/workspace/add-ons/guides/preview-links-smart-chips). |\n| `createActionTriggers[]` | [CreateActionExtensionPoint](/workspace/add-ons/reference/rpc/google.apps.script.type#google.apps.script.type.CreateActionExtensionPoint) A list of extension points for creating third-party resources from within Google Workspace applications. For more information, see [Create third-party resources from the @ menu](https://developers.google.com/workspace/add-ons/guides/create-insert-resource-smart-chip). |\n\nDocsExtensionPoint\n------------------\n\nCommon format for declaring a Docs add-on's triggers.\n\n| Fields ||\n|---------------|------------------------------------------------------------------------------------|\n| `runFunction` | `string` Required. The endpoint to execute when this extension point is activated. |"]]