【发布时间】:2018-01-09 21:03:58
【问题描述】:
我想使用 Google 应用脚本将集成添加到我的团队的日历中。最好将新菜单集成到日历的 UI 中。
最好是可能的文档、表格和表格:
// Display a sidebar with custom HtmlService content.
var htmlOutput = HtmlService
.createHtmlOutput('<p>A change of speed, a change of style...</p>')
.setTitle('My add-on');
SpreadsheetApp.getUi().showSidebar(htmlOutput);
// Display a sidebar with custom UiApp content.
var uiInstance = UiApp.createApplication()
.setTitle('My add-on');
uiInstance.add(uiInstance.createLabel('The photograph on the dashboard taken years ago...'));
SpreadsheetApp.getUi().showSidebar(uiInstance);
来自https://developers.google.com/apps-script/reference/base/ui#showsidebaruserinterface
但是,CalendarApp 似乎没有可使用的 .getUi() 方法。
还有其他方法可以将侧边栏附加到 Google CalendarApp 吗?
【问题讨论】:
标签: google-apps-script calendar google-calendar-api