Class ButtonSet
Stay organized with collections
Save and categorize content based on your preferences.
Spark icon
AI-generated Key Takeaways
-
ButtonSet holds a set of Button objects displayed in a row.
-
ButtonSet is available for Google Workspace add-ons and Google Chat apps.
-
You can add a button to a ButtonSet using the
addButton()method.
ButtonSet
Holds a set of Button objects that are displayed in a row.
Available for Google Workspace add-ons and Google Chat apps.
consttextButton=CardService.newTextButton(); // Finish building the text button... constimageButton=CardService.newImageButton(); // Finish building the image button... constbuttonSet= CardService.newButtonSet().addButton(textButton).addButton(imageButton);
Methods
| Method | Return type | Brief description |
|---|---|---|
add | Button | Adds a button. |