【问题标题】:Add a sidebar to Google Calendar with Google App Script?使用 Google App Script 向 Google Calendar 添加侧边栏?
【发布时间】: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


【解决方案1】:

很遗憾,目前使用 Google Apps 脚本无法做到这一点。但是,您可以通过编写将自定义 UI 元素注入日历页面的 DOM 对象的 Chrome 扩展来修改日历 UI。

【讨论】:

  • 谢谢,很遗憾。 Google 的许多产品都有一些奇怪的不一致之处。
猜你喜欢
  • 1970-01-01
  • 2021-09-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-12-16
  • 1970-01-01
  • 2016-03-14
  • 2016-12-27
相关资源
最近更新 更多