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.

다음에 대한 의견 보내기...

도움이 필요하시나요? 지원 페이지를 방문하세요.