有没有办法在Gmail加载项中显示模式对话框 [英] Is there a way to show a modal dialog in Gmail add-on
问题描述
是否可以在Gmail插件中显示模式对话框,类似于电子表格插件
Is there a way to show a modal dialog in Gmail add-on, similar like in Spreadsheets add-on
SpreadsheetApp.getUi().showModalDialog(html, title);
Looks like no and the only way to display some UI to a user is to use Cards
但是,我想确保它是正确的.找不到任何不可能的文章,并且也可以解决问题.
However, I would like to be sure that it's correct. Couldn't find any article that it's not possible and working solution as well.
感谢您的任何评论!
推荐答案
您是正确的.如果您想使用插件将用户界面添加到GMail,则必须使用其卡片功能.您可以在此处阅读限制:
You are correct. If you want to add a UI to GMail using an Add-on you have to use their Cards feature. You can read the restriction here:
使用客户端脚本
您无法使用HTML,CSS和Javascript为附加组件设计自定义UI. Gmail附加组件使用基于窗口小部件的方法来构建用户界面.这样,该插件就可以在台式机和移动平台上正常工作,而无需您为它们分别构建界面.
You can't design a custom UI for your add-on using HTML, CSS and Javascript. Gmail add-ons use a widget-based approach to building user interfaces. This allows the add-on to work well on desktop and mobile platforms without requiring you to build an interface for each.
这篇关于有没有办法在Gmail加载项中显示模式对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!