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.

Send feedback about...

Apps Script
Apps Script
Need help? Visit our support page.