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:這個物件用於鏈結。