Class ButtonSet

ButtonSet

Contient un ensemble d'objets Button affichés sur une ligne.

Disponible avec les modules complémentaires Google Workspace et les applications 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éthodes

MéthodeType renvoyéBrève description
addButton(button)ButtonSetAjoute un bouton.

Documentation détaillée

addButton(button)

Ajoute un bouton.

Paramètres

NomTypeDescription
buttonButtonBouton à ajouter.

Renvois

ButtonSet : objet pour le chaînage.