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 addFooterWidget and addWidget methods respectively.

  • Both addFooterWidget and addWidget methods 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

MethodReturn typeBrief description
addFooterWidget(widget)CarouselCardAdds the given widget to the footer of this carousel card.
addWidget(widget)CarouselCardAdds the given widget to this carousel card.

Detailed documentation


Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-03 UTC.