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ức | Kiểu dữ liệu trả về | Mô tả ngắn |
|---|---|---|
add | Carousel | Thêm thẻ băng chuyền. |
Tài liệu chi tiết
add Carousel Card(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ên | Loại | Mô tả |
|---|---|---|
card | Carousel | Thẻ băng chuyền cần thêm. |
Cầu thủ trả bóng
Carousel – Đối tượng này, để tạo chuỗi.