Kaydırma çubuğu olarak da bilinen bant, widget'ların listesini slayt gösterisi biçiminde döndürür ve görüntüler. Bu bantta, önceki veya sonraki widget'a gitme düğmeleri bulunur.
Google Workspace eklentileri ve Google Chat uygulamaları için kullanılabilir.
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')))
Yöntemler
| Yöntem | Dönüş türü | Kısa açıklama |
|---|---|---|
add | Carousel | Bant kartı ekler. |
Ayrıntılı dokümanlar
add Carousel Card(card)
Bant kartı ekler.
const carousel = CardService.newCarousel() .addCarouselCard(CardService.newCarouselCard().addWidget( CardService.newTextParagraph().setText('The first text paragraph in carousel')));
Parametreler
| Ad | Tür | Açıklama |
|---|---|---|
card | Carousel | Eklenecek bant kartı. |
Return
Carousel: Zincirleme için bu nesne.