Class ButtonSet

ButtonSet

存放在一行中显示的一组 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添加按钮。

详细文档

addButton(button)

添加按钮。

参数

名称类型说明
buttonButton要添加的按钮。

弃踢回攻

ButtonSet - 此对象,用于链接。