如何在Google App脚本中添加标签组件

问题描述 投票:-2回答:1

我正在尝试使用Google App脚本为Google日历开发附加组件我对Google App脚本完全陌生我找不到如何在气体中设置标签成分我只需要添加一个标签作为该部门的标题

google-apps-script
1个回答
1
投票

如果要设置文本输入的title,则只能使用.setTitle(),如下所示:

var textInput = CardService.newTextInput()
    .setFieldName("text_input_form_input_key")
    .setTitle("The title of the text input");

此外,您可以检查此链接,因为它可能对您有帮助:

© www.soinside.com 2019 - 2024. All rights reserved.