保留一列顯示的 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 | 新增按鈕。 |