Il carosello, noto anche come cursore, ruota e mostra un elenco di widget in formato presentazione, con pulsanti che consentono di passare al widget precedente o successivo.
Disponibile per i componenti aggiuntivi di Google Workspace e le app Google Chat.
const carousel = CardService.newCarousel() .addCarouselCard(CardService.newCarouselCard().addWidget( CardService.newTextParagraph().setText('The first text paragraph in carousel'))) .addCarouselCard(CardService.newCarouselCard().addWidget( CardService.newTextParagraph().setText('The second text paragraph in carousel'))) .addCarouselCard(CardService.newCarouselCard().addWidget( CardService.newTextParagraph().setText('The third text paragraph in carousel')))
Metodi
| Metodo | Tipo restituito | Breve descrizione |
|---|---|---|
add | Carousel | Aggiunge una scheda carosello. |
Documentazione dettagliata
add Carousel Card(card)
Aggiunge una scheda carosello.
const carousel = CardService.newCarousel() .addCarouselCard(CardService.newCarouselCard().addWidget( CardService.newTextParagraph().setText('The first text paragraph in carousel')));
Parametri
| Nome | Tipo | Descrizione |
|---|---|---|
card | Carousel | La scheda del carosello da aggiungere. |
Invio
Carousel: questo oggetto, per l'accodamento.