存放在一行中显示的一组 Button
对象。
适用于 Google Workspace 插件和 Google Chat 应用。
var textButton = CardService.newTextButton(); // Finish building the text button... var imageButton = CardService.newImageButton(); // Finish building the image button... var buttonSet = CardService.newButtonSet() .addButton(textButton) .addButton(imageButton);
方法
方法 | 返回类型 | 简介 |
---|---|---|
addButton(button) | ButtonSet | 添加按钮。 |