【发布时间】:2019-09-08 09:35:37
【问题描述】:
我在 Google 电子表格中创建了一个图像按钮并分配了功能,以执行一些操作。 但是此按钮单击仅适用于 Windows,不适用于 Android 移动工作表或移动浏览器。这个问题的解决方法是什么?
【问题讨论】:
-
请查看this。我想它可以解决问题。
标签: google-apps-script mobile google-sheets
我在 Google 电子表格中创建了一个图像按钮并分配了功能,以执行一些操作。 但是此按钮单击仅适用于 Windows,不适用于 Android 移动工作表或移动浏览器。这个问题的解决方法是什么?
【问题讨论】:
标签: google-apps-script mobile google-sheets
解决方法是使用复选框(例如,在 F1 中)而不是按钮/图像。然后挂钩你的函数,它应该在按钮点击到onEdit() 函数时运行。
function onEdit(e){
const rg = e.range;
if(rg.getA1Notation() === "F1" && rg.isChecked() && rg.getSheet().getName() === "Sheet1"){
callFunctionAttachedToImage();
rg.uncheck();
}
}
【讨论】:
callFunctionAttachedToImage。