קרוסלה, שנקראת גם פס הגלילה, מסתובבת ומציגה רשימה של ווידג'טים בפורמט של גלריה, עם לחצנים לנווט לווידג'ט הקודם או הבא.
התכונה זמינה בתוספים ל-Google Workspace ובאפליקציות של 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')))
Methods
שיטה | סוג הערך המוחזר | תיאור קצר |
---|---|---|
add | Carousel | הוספת כרטיס קרוסלה. |
מסמכים מפורטים
add Carousel Card(card)
הוספת כרטיס קרוסלה.
const carousel = CardService.newCarousel() .addCarouselCard(CardService.newCarouselCard().addWidget( CardService.newTextParagraph().setText('The first text paragraph in carousel')));
פרמטרים
שם | סוג | תיאור |
---|---|---|
card | Carousel | הכרטיס בקרוסלה שרוצים להוסיף. |
חזרה
Carousel
– האובייקט הזה, לצורך קישור.