Carte pouvant être affichée en tant qu'élément de carrousel.
Disponible pour les modules complémentaires Google Workspace et les applications 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'));
Méthodes
| Méthode | Type renvoyé | Brève description |
|---|---|---|
add | Carousel | Ajoute le widget donné au pied de cette fiche de carrousel. |
add | Carousel | Ajoute le widget donné à cette fiche de carrousel. |
Documentation détaillée
add Widget(widget)
Ajoute le widget donné à cette fiche de carrousel. Les widgets s'affichent dans l'ordre dans lequel ils ont été ajoutés.
const carouselCard = CardService.newCarouselCard() .addWidget( CardService.newTextParagraph().setText('a text paragraph in the carousel card'));
Paramètres
| Nom | Type | Description |
|---|---|---|
widget | Widget | Widget à ajouter à la fiche carrousel. |
Renvois
Carousel : cet objet, pour le chaînage.