Package google.apps.script.type.docs
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
DocsAddOnManifest
用于自定义 Google 文档插件外观和执行方式的属性。
DocsExtensionPoint
字段 |
runFunction |
string
必需。激活此扩展点时要执行的端点。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-04-22。
[null,null,["最后更新时间 (UTC):2025-04-22。"],[[["\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,[]]