Class Carousel

קרוסלה

קרוסלה, שנקראת גם פס הגלילה, מסתובבת ומציגה רשימה של ווידג'טים בפורמט של גלריה, עם לחצנים לנווט לווידג'ט הקודם או הבא.

התכונה זמינה בתוספים ל-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

שיטהסוג הערך המוחזרתיאור קצר
addCarouselCard(card)Carouselהוספת כרטיס קרוסלה.

מסמכים מפורטים

addCarouselCard(card)

הוספת כרטיס קרוסלה.

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

פרמטרים

שםסוגתיאור
cardCarouselCardהכרטיס בקרוסלה שרוצים להוסיף.

חזרה

Carousel – האובייקט הזה, לצורך קישור.