Google Apps 脚本中的 ng-Change 等价物

ng-Change equivalent in Google Apps Script

我正在尝试使用 Apps-Script 在我的一个 Gmail 插件 中实现 自动完成 功能。

示例:

Once the user starts typing in the textbox , an ajax call should go and populate the suggestions matching that criteria.

那么,我们如何在 Google Apps-Script 中实现此行为。

寻找与旧 AngularJs 中的 ng-change 等效的内容。

感谢您的帮助。

Gmail 插件是一个沙盒。您只能使用 Google 提供的小部件和上下文(自定义 UI 实现是不可能的)。也就是说,支持自动完成,如下面 link:

所记录

https://developers.google.com/gmail/add-ons/how-tos/suggestions

希望这适用于您的用例,但您的实际情况可能会有所不同。