Class ButtonSet
ButtonSet
Holds a set of Button
objects that are displayed in a row.
Available for Google Workspace Add-ons and Google Chat apps.
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);
Detailed documentation
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["`ButtonSet` objects organize and display a row of `Button` objects within Google Workspace Add-ons and Google Chat apps."],["You can add buttons, which can be either text-based or image-based, to a `ButtonSet` using the `addButton()` method."],["The `addButton()` method allows for building the layout by adding `Button` objects and facilitating chained operations for efficient design."]]],[]]