Google app maker 谷歌应用程序制造商:如何以编程方式隐藏微调器?

Google app maker 谷歌应用程序制造商:如何以编程方式隐藏微调器?,google-app-maker,Google App Maker,在GoogleAppMaker中,我正在向第三方供应商调用API,并在加载数据时显示一个微调器。加载数据后,如何以编程方式隐藏微调器 客户端脚本 google.script.run.withSuccessHandler(函数(响应){ groupRules=JSON.parse(响应); }).withFailureHandler(函数(错误){ 控制台错误(err); setNotificationText('无法检索组规则。请重试'); app.popups.snackbar.visible

在GoogleAppMaker中,我正在向第三方供应商调用API,并在加载数据时显示一个微调器。加载数据后,如何以编程方式隐藏微调器

客户端脚本
google.script.run.withSuccessHandler(函数(响应){
groupRules=JSON.parse(响应);
}).withFailureHandler(函数(错误){
控制台错误(err);
setNotificationText('无法检索组规则。请重试');
app.popups.snackbar.visible=true;

}).getGroupRules(groupId)
您需要放置微调器。visible=false;在成功和失败处理程序中,以便App Maker等待脚本完成

app.pages.NewPage.subjections.Spinner1.visible=true;
google.script.run.withSuccessHandler(函数(响应){
groupRules=JSON.parse(响应);
app.pages.NewPage.subjections.Spinner1.visible=false;
}).withFailureHandler(函数(错误){
控制台错误(err);
setNotificationText('无法检索组规则。请重试');
app.popups.snackbar.visible=true;
app.pages.NewPage.subjections.Spinner1.visible=false;

}).getGroupRules(groupId)
您可以添加显示如何调用第三方api的代码吗?
Spinner.visible=false
per@ValLeNain我已经添加了snippets@gravitymixes我试过spinner1.visible=false,但不起作用。”spinner1'是我展示的spinner的名称。