我想使用Google App Script将集成添加到团队的日历中。确实最好将新菜单集成到日历的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#showsidebar用户界面
但是,CalendarApp似乎没有可用的.getUi()
方法。
还有其他将侧边栏附加到Google CalendarApp的方法吗?
不幸的是,目前无法使用Google Apps脚本。但是,您可以通过编写Chrome扩展程序来修改日历用户界面,该扩展程序会将自定义UI元素注入到“日历”页面的DOM对象中。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句