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

Methods

メソッド戻り値の型概要
addButton(button)ButtonSetボタンを追加します。

詳細なドキュメント

addButton(button)

ボタンを追加します。

パラメータ

Name説明
buttonButton追加するボタン。

リターン

ButtonSet - チェーン用のこのオブジェクト。