【发布时间】:2015-01-11 13:48:02
【问题描述】:
考虑以下 Google 应用程序脚本代码:
var ui = SpreadsheetApp.getUi();
var result = ui.prompt(
'How many days in advance you want to receive the event notification?',
'',
ui.ButtonSet.OK_CANCEL);
我希望对话框在输入框中显示默认值。
其次,我们是否有键盘快捷键来输入/发送数据?这样用户可以点击Enter(或类似的)来接受默认值或value-Enter 来发送他/她自己的值。
【问题讨论】:
标签: google-apps-script google-api modal-dialog google-docs-api google-spreadsheet-api