Class Carousel

Băng chuyền

Băng chuyền (còn gọi là thanh trượt) xoay và hiển thị danh sách các tiện ích ở định dạng trình chiếu, với các nút điều hướng đến tiện ích trước hoặc tiếp theo.

Có sẵn cho các tiện ích bổ sung của Google Workspace và ứng dụng 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')))

Phương thức

Phương thứcKiểu dữ liệu trả vềMô tả ngắn
addCarouselCard(card)CarouselThêm thẻ băng chuyền.

Tài liệu chi tiết

addCarouselCard(card)

Thêm thẻ băng chuyền.

const carousel =
    CardService.newCarousel()
        .addCarouselCard(CardService.newCarouselCard().addWidget(
            CardService.newTextParagraph().setText('The first text paragraph in carousel')));

Thông số

TênLoạiMô tả
cardCarouselCardThẻ băng chuyền cần thêm.

Cầu thủ trả bóng

Carousel – Đối tượng này, để tạo chuỗi.