删除 Google Apps 脚本中的选项卡面板
我使用 Google Apps 脚本的 UI 服务创建了一个包含几个选项卡的选项卡面板,并向每个选项卡添加了一个按钮,以便用户删除该特定选项卡。为此,我将一个应该处理此任务的服务器处理程序附加到该按钮。但是,我无法删除标签。我尝试了各种代码,包括
tabpanel.remove(tabnum);
和
tabpanel.remove(tab);
,
这些代码已知可以在 GWT 中运行,但显然不能在 Google Apps 中运行脚本。
I created a Tab Panel with a few tabs using the UI services of Google Apps Script, and I added to each tab a button to let the user remove that particular tab. To the purpose, I attached to the button a server handler that should take care of this task. However, I am unable to remove the tabs. I tried various codes, including
tabpanel.remove(tabnum);
and
tabpanel.remove(tab);
which are known to work within GWT, but do not apparently in Google Apps Script.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前这是不可能的。
尽管 UiApp 是基于 GWT 构建的,但它并不具备 GWT 所具有的所有功能。
请参阅此TabPanel 参考页面,了解可用于 UiApp#TabPanel 的方法。
最好的,
安东
This is not currently possible.
Even though UiApp was built based on GWT it doesn't have all the functionality that GWT has.
Please see this TabPanel Reference page for the methods that are available for UiApp#TabPanel.
Best,
Anton