Class ButtonSet

ButtonSet

Holds a set of Button objects that are displayed in a row.

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);

Methods

MethodReturn typeBrief description
addButton(button)ButtonSetAdds a button.

Detailed documentation

addButton(button)

Adds a button.

Parameters

NameTypeDescription
buttonButtonthe button to add.

Return

ButtonSet — this object, for chaining.

发送以下问题的反馈:

此网页
Apps Script
Apps Script
需要帮助?请访问我们的支持页面