Package google.apps.script.type.sheets
SheetsAddOnManifest
用于自定义 Google 表格插件外观和执行的属性。
SheetsExtensionPoint
字段 |
runFunction |
string
必需。激活此扩展点时要执行的端点。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-27。
[null,null,["最后更新时间 (UTC):2025-02-27。"],[[["The content focuses on customizing Google Sheets add-ons, particularly their appearance and execution using `SheetsAddOnManifest`."],["`SheetsAddOnManifest` properties include homepage configuration, file scope authorization triggers, and link preview extension points."],["`SheetsExtensionPoint` provides a common structure for defining Sheets add-on triggers with a required `runFunction` field specifying the execution endpoint."]]],["The `SheetsAddOnManifest` message customizes a Google Sheets add-on's behavior. It utilizes the `HomepageTrigger` to override the default homepage, the `onFileScopeGrantedTrigger` to specify an endpoint when file scope authorization is granted, and `linkPreviewTriggers` to set up link preview functionality. `SheetsExtensionPoint` defines the format for add-on triggers, with the required `runFunction` field specifying the endpoint to be executed when the extension is triggered.\n"]]