google-apps-script - Password input type in google calendar add-on using apps script
问题描述
I am developing google calendar add-on using CardService
, Is there any method available for adding password input box in calendar add-on using apps script.
For other google services, It can be added using HTML Service
and by using SpreadsheetApp.getUi()
like method, for calendar .getUi()
does not seem to be available.
Does anyone have an idea about this? Thanks in advance.
解决方案
不,在Card Service类支持的方法之间,没有办法创建密码输入,最相似的方法是TextInput类。
解决方法 1:
使用TextButton在另一个窗口中打开一个链接,在该窗口中您可以使用输入密码的应用程序(例如,指向Web App的链接)。
解决方法 2:
使用 TextInput 中的 onChangeAction 来操作文本输入中的值并将卡片元素再次返回给用户(如本答案中所述)。这将涉及必须存储来自文本输入的更新值,例如使用属性服务,并将文本输入的值更改为用户键入的相同数量的字符,但将字符替换为“*”。
推荐阅读
- python - 根据列中的列表项拆分数据框
- javascript - 在请求中仅指定两个参数之一
- c# - 我可以在 Visual Studio 2017 中使用 C# 应用程序调试 C dll 吗?
- json - 如何在时间轴(Material-UI)中使用 for 循环显示数据 - React
- ios - 删除空间 NavigationTitle 但不删除后退按钮
- vue.js - 如何在 Vue 3 中正确创建弹出组件
- ruby - 如何在Ruby中将多行模块/类转换为带有双冒号(::)的单行?
- django - Celery/Django:shared_task 任务在启动工作人员时消失或未从任务注册表中注册
- html - Adsense Vignette 广告适用于表单提交按钮
- qt - 将 QDialog 移动到另一个监视器并关闭它时,重新打开后对话框将为空白