Class ButtonSet

SchaltflächeSet

Enthält eine Reihe von Button-Objekten, die in einer Zeile angezeigt werden.

Verfügbar für Google Workspace-Add-ons und 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);

Methoden

MethodeRückgabetypKurzbeschreibung
addButton(button)ButtonSetFügen Sie eine Schaltfläche hinzu.

Detaillierte Dokumentation

addButton(button)

Fügen Sie eine Schaltfläche hinzu.

Parameter

NameTypBeschreibung
buttonButtonDie Schaltfläche, die hinzugefügt werden soll.

Rückflug

ButtonSet – dieses Objekt, zur Verkettung