Содержит набор объектов Button , отображаемых подряд.
Доступно для надстроек Google Workspace и приложений Google Chat.
const textButton = CardService.newTextButton(); // Finish building the text button... const imageButton = CardService.newImageButton(); // Finish building the image button... const buttonSet = CardService.newButtonSet().addButton(textButton).addButton(imageButton);
Методы
| Метод | Тип возврата | Краткое описание |
|---|---|---|
add Button(button) | Button Set | Добавляет кнопку. |
Подробная документация
add Button(button)
Добавляет кнопку.
Параметры
| Имя | Тип | Описание |
|---|---|---|
button | Button | Кнопка добавления. |
Возвращаться
Button Set — этот объект для цепочки.