Class ButtonSet
    
    
      
    
    
      
      Zadbaj o dobrą organizację dzięki kolekcji
    
    
      
      Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
PrzyciskUstawienia
Zawiera zbiór obiektów Button wyświetlanych w wierszu.
Dostępne w przypadku dodatków do Google Workspace i aplikacji Google Chat.
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);
 
Szczegółowa dokumentacja
 
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
  Ostatnia aktualizacja: 2025-07-26 UTC.
  
  
  
    
      [null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[],["The `ButtonSet` object holds and displays a row of `Button` objects.  You can create a `ButtonSet` using `CardService.newButtonSet()`.  To add buttons, use the `addButton(button)` method, passing in a `Button` object. This method can be chained to add multiple buttons sequentially. `addButton` returns the `ButtonSet` object itself. This functionality is available for Google Workspace add-ons and Google Chat apps.\n"]]