Class CarouselCard
-
A CarouselCard is a card that can be displayed as a carousel item.
-
CarouselCard is available for Google Workspace add-ons and Google Chat apps.
-
You can add widgets to the footer or the main body of the CarouselCard using the
addFooterWidgetandaddWidgetmethods respectively. -
Both
addFooterWidgetandaddWidgetmethods return the CarouselCard object for chaining.
A card that can be displayed as a carousel item.
Available for Google Workspace add-ons and Google Chat apps.
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'));
Methods
| Method | Return type | Brief description |
|---|---|---|
add | Carousel | Adds the given widget to the footer of this carousel card. |
add | Carousel | Adds the given widget to this carousel card. |