Class CarouselCard

CarouselCard

Carte pouvant être affichée sous forme d'é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éthodeType renvoyéBrève description
addFooterWidget(widget)CarouselCardAjoute le widget donné au pied de page de cette carte de carrousel.
addWidget(widget)CarouselCardAjoute le widget donné à cette carte de carrousel.

Documentation détaillée

addFooterWidget(widget)

Ajoute le widget donné au pied de page de cette carte de carrousel. Les widgets s'affichent dans l'ordre dans lequel ils ont été ajoutés.

const carouselCard = CardService.newCarouselCard()
    .addFooterWidget(
        CardService.newTextParagraph().setText('a text paragraph in the carousel card footer'));

Paramètres

NomTypeDescription
widgetWidgetWidget à ajouter au pied de page de la carte de carrousel.

Renvois

CarouselCard : cet objet, pour l'association en chaîne.


addWidget(widget)

Ajoute le widget donné à cette carte 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

NomTypeDescription
widgetWidgetWidget à ajouter à la carte de carrousel.

Renvois

CarouselCard : cet objet, pour l'association en chaîne.