Class ButtonSet

Button Set

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 
 ); 

Methods

Method Return type Brief description
Button Set Adds a button.

Detailed documentation

add Button(button)

Adds a button.

Parameters

Name Type Description
button
Button The button to add.

Return

Button Set — This object, for chaining.

Create a Mobile Website
View Site in Mobile | Classic
Share by: