Class ButtonSet

ButtonSet

Contiene un conjunto de objetos Button que se muestran en una fila.

Está disponible para complementos de Google Workspace y apps de 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);

Métodos

MétodoTipo de datos que se muestraDescripción breve
addButton(button)ButtonSetAgrega un botón.

Documentación detallada

addButton(button)

Agrega un botón.

Parámetros

NombreTipoDescripción
buttonButtonEl botón para agregar.

Devolvedor

ButtonSet: Este objeto se usa para encadenar.