Package google.apps.script.type.docs
DocsAddOnManifest
用于自定义 Google 文档插件的外观和执行的属性。
DocsExtensionPoint
字段 |
runFunction |
string
必需。激活此扩展点时要执行的端点。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-27。
[null,null,["最后更新时间 (UTC):2025-02-27。"],[[["`DocsAddOnManifest` customizes the appearance and execution of Google Docs add-ons, including homepage configuration, file scope authorization, link previews, and third-party resource creation."],["`DocsExtensionPoint` defines a common format for Google Docs add-on triggers, specifying the endpoint function to execute when activated."],["The manifest includes triggers for various events like homepage access, file authorization, link previews, and actions to create third-party resources."],["Each extension point within the manifest specifies a `runFunction` which is the Apps Script function to be executed upon triggering the extension point."]]],["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"]]