Una scheda che può essere visualizzata come elemento del carosello.
Disponibile per i componenti aggiuntivi di Google Workspace e le app Google Chat.
const carouselCard = CardService.newCarouselCard() .addWidget( CardService.newTextParagraph().setText('a text paragraph in the carousel card')) .addFooterWidget( CardService.newTextParagraph().setText('a text paragraph in the carousel card footer'));
Metodi
| Metodo | Tipo restituito | Breve descrizione |
|---|---|---|
add | Carousel | Aggiunge il widget specificato al piè di pagina di questa scheda del carosello. |
add | Carousel | Aggiunge il widget specificato a questa scheda del carosello. |
Documentazione dettagliata
addWidget(widget)
Aggiunge il widget specificato a questa scheda del carosello. I widget vengono visualizzati nell'ordine in cui sono stati aggiunti.
const carouselCard = CardService.newCarouselCard() .addWidget( CardService.newTextParagraph().setText('a text paragraph in the carousel card'));
Parametri
| Nome | Tipo | Descrizione |
|---|---|---|
widget | Widget | Un widget da aggiungere alla scheda carosello. |
Indietro
CarouselCard: questo oggetto, per il concatenamento.