Class CardService

CardService

CardService מאפשר ליצור כרטיסים כלליים שאפשר להשתמש בהם במוצרים שונים של Google עם יכולת התאמה אישית, כמו תוספים ל-Google Workspace.

בהמשך מופיעה דוגמה לכרטיס של חבילות שירות.

function createCard() {
  return CardService.newCardBuilder()
      .setHeader(CardService.newCardHeader().setTitle('CardTitle'))
      .build();
}

לחלופין, אפשר להחזיר כמה כרטיסים כך:

function createCards() {
  return [
    CardService.newCardBuilder().build(),
    CardService.newCardBuilder().build(),
    CardService.newCardBuilder().build(),
  ];
}

הדוגמה הבאה מראה איך אפשר להגדיר כרטיס עם כותרת, טקסט, תמונה ופריט תפריט:

function createWidgetDemoCard() {
  return CardService.newCardBuilder()
      .setHeader(
          CardService.newCardHeader()
              .setTitle('Widget demonstration')
              .setSubtitle('Check out these widgets')
              .setImageStyle(CardService.ImageStyle.SQUARE)
              .setImageUrl('https://www.example.com/images/headerImage.png'),
          )
      .addSection(
          CardService.newCardSection()
              .setHeader('Simple widgets')  // optional
              .addWidget(
                  CardService.newTextParagraph().setText(
                      'These widgets are display-only. ' +
                          'A text paragraph can have multiple lines and ' +
                          'formatting.',
                      ),
                  )
              .addWidget(
                  CardService.newImage().setImageUrl(
                      'https://www.example.com/images/mapsImage.png',
                      ),
                  ),
          )
      .addCardAction(
          CardService.newCardAction().setText('Gmail').setOpenLink(
              CardService.newOpenLink().setUrl('https://mail.google.com/mail'),
              ),
          )
      .build();
}

דוגמה לכרטיס של אפליקציות ל-Chat.

const cardHeader =
    CardService.newCardHeader()
        .setTitle('Sasha')
        .setSubtitle('Software Engineer')
        .setImageUrl(
            'https://developers.google.com/chat/images/quickstart-app-avatar.png',
            )
        .setImageStyle(CardService.ImageStyle.CIRCLE)
        .setImageAltText('Avatar for Sasha');

const cardSection =
    CardService.newCardSection()
        .setHeader('Contact Info')
        .setCollapsible(true)
        .setNumUncollapsibleWidgets(1)
        .addWidget(
            CardService.newDecoratedText()
                .setStartIcon(
                    CardService.newIconImage().setIcon(CardService.Icon.EMAIL))
                .setText('sasha@example.com'),
            )
        .addWidget(
            CardService.newDecoratedText()
                .setStartIcon(
                    CardService.newIconImage().setIcon(CardService.Icon.PERSON))
                .setText('<font color="#80e27e">Online</font>'),
            )
        .addWidget(
            CardService.newDecoratedText()
                .setStartIcon(
                    CardService.newIconImage().setIcon(CardService.Icon.PHONE))
                .setText('+1 (555) 555-1234'),
            )
        .addWidget(
            CardService.newButtonSet()
                .addButton(
                    CardService.newTextButton().setText('Share').setOpenLink(
                        CardService.newOpenLink().setUrl(
                            'https://example.com/share'),
                        ),
                    )
                .addButton(
                    CardService.newTextButton()
                        .setText('Edit')
                        .setOnClickAction(
                            CardService.newAction()
                                .setFunctionName('goToView')
                                .setParameters({viewType: 'EDIT'}),
                            ),
                    ),
        );

const card = CardService.newCardBuilder()
                 .setHeader(cardHeader)
                 .addSection(cardSection)
                 .build();

מאפיינים

נכססוגתיאור
BorderTypeBorderTypeהמאפיין BorderType.
ChipListLayoutChipListLayoutהמאפיין ChipListLayout.
ComposedEmailTypeComposedEmailTypeהמאפיין ComposedEmailType.
ContentTypeContentTypeהמאפיין ContentType.
GridItemLayoutGridItemLayoutהמאפיין GridItemLayout.
HorizontalAlignmentHorizontalAlignmentהמאפיין HorizontalAlignment.
IconIconהמאפיין Icon.
ImageButtonStyleImageButtonStyleהמאפיין ImageButtonStyle.
ImageCropTypeImageCropTypeהמאפיין ImageCropType.
ImageStyleImageStyleהמאפיין ImageStyle.
InputTypeInputTypeהמאפיין InputType.
LoadIndicatorLoadIndicatorהמאפיין LoadIndicator.
OnCloseOnCloseהמאפיין OnClose.
OpenAsOpenAsהמאפיין OpenAs.
SelectionInputTypeSelectionInputTypeהמאפיין SelectionInputType.
TextButtonStyleTextButtonStyleהמאפיין TextButtonStyle.
UpdateDraftBodyTypeUpdateDraftBodyTypeהמאפיין UpdateDraftBodyType.

Methods

שיטהסוג הערך המוחזרתיאור קצר
newAction()Actionיצירת Action חדש.
newActionResponseBuilder()ActionResponseBuilderיצירת ActionResponseBuilder חדש.
newActionStatus()ActionStatusיצירת ActionStatus חדש.
newAttachment()Attachmentיצירת Attachment חדש.
newAuthorizationAction()AuthorizationActionיצירת AuthorizationAction חדש.
newAuthorizationException()AuthorizationExceptionיצירת AuthorizationException חדש.
newBorderStyle()BorderStyleיצירת BorderStyle חדש.
newButtonSet()ButtonSetיצירת ButtonSet חדש.
newCalendarEventActionResponseBuilder()CalendarEventActionResponseBuilderיצירת CalendarEventActionResponseBuilder חדש.
newCardAction()CardActionיצירת CardAction חדש.
newCardBuilder()CardBuilderיצירת כלי חדש ליצירת כרטיסים.
newCardHeader()CardHeaderיצירת CardHeader חדש.
newCardSection()CardSectionיצירת CardSection חדש.
newCardWithId()CardWithIdיצירת CardWithId חדש.
newCarousel()Carouselיצירת Carousel.
newCarouselCard()CarouselCardיצירת CarouselCard חדש.
newChatActionResponse()ChatActionResponseיצירת ChatActionResponse חדש.
newChatResponseBuilder()ChatResponseBuilderיצירת ChatResponseBuilder חדש.
newChip()Chipיצירת Chip חדש.
newChipList()ChipListיצירת ChipList חדש.
newCollapseControl()CollapseControlיצירת CollapseControl חדש.
newColumn()Columnיצירת Column חדש.
newColumns()Columnsיצירת קבוצה חדשה של Columns.
newComposeActionResponseBuilder()ComposeActionResponseBuilderיצירת ComposeActionResponseBuilder חדש.
newDatePicker()DatePickerיצירת DatePicker חדש.
newDateTimePicker()DateTimePickerיצירת DateTimePicker חדש.
newDecoratedText()DecoratedTextיצירת DecoratedText חדש.
newDialog()Dialogיצירת Dialog חדש.
newDialogAction()DialogActionיצירת DialogAction חדש.
newDivider()Dividerיצירת Divider חדש.
newDriveItemsSelectedActionResponseBuilder()DriveItemsSelectedActionResponseBuilderיצירת DriveItemsSelectedActionResponseBuilder חדש.
newEditorFileScopeActionResponseBuilder()EditorFileScopeActionResponseBuilderיצירת EditorFileScopeActionResponseBuilder חדש.
newFixedFooter()FixedFooterיצירת FixedFooter חדש.
newGrid()Gridיצירת Grid חדש.
newGridItem()GridItemיצירת GridItem חדש.
newIconImage()IconImageיצירת IconImage חדש.
newImage()Imageיצירת Image חדש.
newImageButton()ImageButtonיצירת ImageButton חדש.
newImageComponent()ImageComponentיצירת ImageComponent חדש.
newImageCropStyle()ImageCropStyleיצירת ImageCropStyle חדש.
newKeyValue()KeyValueיצירת KeyValue חדש.
newLinkPreview()LinkPreviewיצירת LinkPreview חדש.
newMaterialIcon()MaterialIconיצירת MaterialIcon חדש.
newNavigation()Navigationיצירת Navigation חדש.
newNotification()Notificationיצירת Notification חדש.
newOpenLink()OpenLinkיצירת OpenLink חדש.
newOverflowMenu()OverflowMenuיצירת OverflowMenu חדש.
newOverflowMenuItem()OverflowMenuItemיצירת OverflowMenuItem חדש.
newSelectionInput()SelectionInputיצירת SelectionInput חדש.
newSuggestions()Suggestionsיצירת Suggestions חדש.
newSuggestionsResponseBuilder()SuggestionsResponseBuilderיצירת SuggestionsResponseBuilder חדש.
newSwitch()Switchיצירת Switch חדש.
newTextButton()TextButtonיצירת TextButton חדש.
newTextInput()TextInputיצירת TextInput חדש.
newTextParagraph()TextParagraphיצירת TextParagraph חדש.
newTimePicker()TimePickerיצירת TimePicker חדש.
newUniversalActionResponseBuilder()UniversalActionResponseBuilderיצירת UniversalActionResponseBuilder חדש.
newUpdateDraftActionResponseBuilder()UpdateDraftActionResponseBuilderיצירת UpdateDraftActionResponseBuilder חדש.
newUpdateDraftBccRecipientsAction()UpdateDraftBccRecipientsActionיצירת UpdateDraftBccRecipientsAction חדש.
newUpdateDraftBodyAction()UpdateDraftBodyActionיצירת UpdateDraftBodyAction חדש.
newUpdateDraftCcRecipientsAction()UpdateDraftCcRecipientsActionיצירת UpdateDraftCcRecipientsAction חדש.
newUpdateDraftSubjectAction()UpdateDraftSubjectActionיצירת UpdateDraftSubjectAction חדש.
newUpdateDraftToRecipientsAction()UpdateDraftToRecipientsActionיצירת UpdateDraftToRecipientsAction חדש.
newValidation()Validationיצירת Validation חדש.

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

newAction()

יצירת Action חדש.

חזרה

Action — פעולה ריקה.


newActionResponseBuilder()

יצירת ActionResponseBuilder חדש.

חזרה

ActionResponseBuilder – כלי ריק ליצירת ActionResponse.


newActionStatus()

יצירת ActionStatus חדש.

האפשרות הזו זמינה רק לאפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.

const actionStatus = CardService.newActionStatus()
                         .setStatusCode(CardService.Status.OK)
                         .setUserFacingMessage('Success');

חזרה

ActionStatus – סטטוס פעולה ריק.


newAttachment()

יצירת Attachment חדש.

חזרה

Attachment — קובץ מצורף ריק.


newAuthorizationAction()

יצירת AuthorizationAction חדש.

חזרה

AuthorizationAction – AuthorizationAction ריק.


newAuthorizationException()

יצירת AuthorizationException חדש.

חזרה

AuthorizationException – ‎AuthorizationException ריק.


newBorderStyle()

יצירת BorderStyle חדש.

חזרה

BorderStyle – BorderStyle ריק.


newButtonSet()

יצירת ButtonSet חדש.

חזרה

ButtonSet — ButtonSet ריק.


newCalendarEventActionResponseBuilder()


newCardAction()

יצירת CardAction חדש.

חזרה

CardAction — CardAction ריק.


newCardBuilder()

יצירת כלי חדש ליצירת כרטיסים.

חזרה

CardBuilder — כלי יצירת כרטיסים ריק.


newCardHeader()

יצירת CardHeader חדש.

חזרה

CardHeader — CardHeader ריק.


newCardSection()

יצירת CardSection חדש.

חזרה

CardSection — CardSection ריק.


newCardWithId()

יצירת CardWithId חדש. השדה הזה משמש לשליחת כרטיס בהודעה ב-Google Chat. מזהה הכרטיס הוא מזהה ייחודי של כרטיס בהודעה כששולחים כמה כרטיסים.

האפשרות הזו זמינה רק לאפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.

const cardSection = CardService.newCardSection();
cardSection.addWidget(
    CardService.newTextParagraph().setText('This is a text paragraph widget.'),
);

const card = CardService.newCardBuilder()
                 .setHeader(CardService.newCardHeader().setTitle('Card title'))
                 .addSection(cardSection)
                 .build();

const cardWithId =
    CardService.newCardWithId().setCardId('card_id').setCard(card);

חזרה

CardWithIdCardWithId ריק.


newCarousel()

יצירת Carousel.

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')))

חזרה

Carousel — קרוסלה ריקה.


newCarouselCard()

יצירת CarouselCard חדש.

const carouselCard = CardService.newCarouselCard().addWidget(
    CardService.newTextParagraph().setText('Text paragraph in carousel'));

חזרה

CarouselCard — צ'יפ ריק.


newChatActionResponse()

יצירת ChatActionResponse חדש.

האפשרות הזו זמינה רק לאפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.

const card = CardService.newCardBuilder()
                 .setHeader(CardService.newCardHeader().setTitle('Card title'))
                 .build();
const dialog = CardService.newDialog().setBody(card);

const dialogAction = CardService.newDialogAction().setDialog(dialog);

const chatActionResponse = CardService.newChatActionResponse()
                               .setResponseType(CardService.ResponseType.DIALOG)
                               .setDialogAction(dialogAction);

חזרה

ChatActionResponseChatActionResponse ריק.


newChatResponseBuilder()

יצירת ChatResponseBuilder חדש.

האפשרות הזו זמינה רק לאפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.

const cardSection = CardService.newCardSection();
cardSection.addWidget(
    CardService.newTextParagraph().setText('This is a text paragraph widget.'),
);

const card = CardService.newCardBuilder()
                 .setHeader(CardService.newCardHeader().setTitle('Card title'))
                 .addSection(cardSection)
                 .build();

const cardWithId =
    CardService.newCardWithId().setCardId('card_id').setCard(card);

const chatResponse =
    CardService.newChatResponseBuilder().addCardsV2(cardWithId).build();

חזרה

ChatResponseBuilder – אובייקט ChatResponseBuilder ריק.


newChip()

יצירת Chip חדש.

זמין באפליקציות של Google Chat. בתצוגה המקדימה למפתחים של תוספים ל-Google Workspace.

const chip = CardService.newChip()
                 .setLabel('Open Link')
                 .setOpenLink(CardService.newOpenLink().setUrl(
                     'https://www.google.com'));

חזרה

Chip — צ'יפ ריק.


newChipList()

יצירת ChipList חדש.

זמין באפליקציות של Google Chat. בתצוגה המקדימה למפתחים של תוספים ל-Google Workspace.

const chip = CardService.newChip();
// Finish building the text chip...

const chipList = CardService.newChipList()
                     .setLayout(CardService.ChipListLayout.WRAPPED)
                     .addChip(chip);

חזרה

ChipList — רשימת צ'יפים ריקה.


newCollapseControl()

יצירת CollapseControl חדש.

זמין באפליקציות של Google Chat. בתצוגה המקדימה למפתחים של תוספים ל-Google Workspace.

const collapseControl =
    CardService.newCollapseControl()
        .setHorizontalAlign(CardService.HorizontalAlignment.START)
        .setExpandButton(CardService.newTextButton().setText('Expand'))
        .setCollapseButton(CardService.newTextButton().setText('Collapse'));

חזרה

CollapseControl – CollapseControl ריק.


newColumn()

יצירת Column חדש.

הפיצ'ר זמין באפליקציות של Google Chat ובתוספים של Google Workspace.

const columnWidget = CardService.newTextParagraph();
const column =
    CardService.newColumn()
        .setHorizontalSizeStyle(
            CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE)
        .setHorizontalAlignment(CardService.HorizontalAlignment.CENTER)
        .setVerticalAlignment(CardService.VerticalAlignment.CENTER)
        .addWidget(columnWidget);

חזרה

Column — עמודה ריקה.


newColumns()

יצירת קבוצה חדשה של Columns.

הפיצ'ר זמין באפליקציות של Google Chat ובתוספים של Google Workspace.

const firstColumn =
    CardService.newColumn()
        .setHorizontalSizeStyle(
            CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE)
        .setHorizontalAlignment(CardService.HorizontalAlignment.CENTER)
        .setVerticalAlignment(CardService.VerticalAlignment.CENTER);
const secondColumn =
    CardService.newColumn()
        .setHorizontalSizeStyle(
            CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE)
        .setHorizontalAlignment(CardService.HorizontalAlignment.CENTER)
        .setVerticalAlignment(CardService.VerticalAlignment.CENTER);
const columns = CardService.newColumns()
                    .addColumn(firstColumn)
                    .addColumn(secondColumn)
                    .setWrapStyle(CardService.WrapStyle.WRAP);

חזרה

Columns – קבוצה ריקה של עמודות.


newComposeActionResponseBuilder()

יצירת ComposeActionResponseBuilder חדש.

חזרה

ComposeActionResponseBuilder — ה-builder הריק של ComposeActionResponse.


newDatePicker()

יצירת DatePicker חדש.

חזרה

DatePicker — תאריך DatePicker ריק.


newDateTimePicker()

יצירת DateTimePicker חדש.

חזרה

DateTimePicker — חלונית DateTimePicker ריקה.


newDecoratedText()

יצירת DecoratedText חדש.

חזרה

DecoratedText — DecoratedText ריק.


newDialog()

יצירת Dialog חדש.

האפשרות הזו זמינה רק לאפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.

const card = CardService.newCardBuilder()
                 .setHeader(CardService.newCardHeader().setTitle('Card title'))
                 .build();

// Sets the card of the dialog.
const dialog = CardService.newDialog().setBody(card);

חזרה

DialogDialog ריק.


newDialogAction()

יצירת DialogAction חדש.

האפשרות הזו זמינה רק לאפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.

const card = CardService.newCardBuilder()
                 .setHeader(CardService.newCardHeader().setTitle('Card title'))
                 .build();
const dialog = CardService.newDialog().setBody(card);

const dialogAction = CardService.newDialogAction().setDialog(dialog);

חזרה

DialogActionDialogAction ריק.


newDivider()

יצירת Divider חדש. בדוגמה הבאה נוצר כרטיס פשוט עם 2 פסקאות שמפרידות ביניהן קו מפריד.

function buildCard() {
  const cardSection1TextParagraph1 =
      CardService.newTextParagraph().setText('Hello world!');

  const cardSection1Divider1 = CardService.newDivider();

  const cardSection1TextParagraph2 =
      CardService.newTextParagraph().setText('Hello world!');

  const cardSection1 = CardService.newCardSection()
                           .addWidget(cardSection1TextParagraph1)
                           .addWidget(cardSection1Divider1)
                           .addWidget(cardSection1TextParagraph2);

  const card = CardService.newCardBuilder().addSection(cardSection1).build();

  return card;
}

חזרה

Divider — קו מפריד.


newDriveItemsSelectedActionResponseBuilder()


newEditorFileScopeActionResponseBuilder()


newFixedFooter()

יצירת FixedFooter חדש.

חזרה

FixedFooter — רכיב FixedFooter ריק.


newGrid()

יצירת Grid חדש.

חזרה

Grid — רשת ריקה.


newGridItem()

יצירת GridItem חדש.

חזרה

GridItem — פריט GridItem ריק.


newIconImage()

יצירת IconImage חדש.

חזרה

IconImage — תמונת סמל ריקה.


newImage()

יצירת Image חדש.

חזרה

Image — קובץ אימג' ריק.


newImageButton()

יצירת ImageButton חדש.

חזרה

ImageButton — ImageButton ריק.


newImageComponent()

יצירת ImageComponent חדש.

חזרה

ImageComponent – רכיב ImageComponent ריק.


newImageCropStyle()

יצירת ImageCropStyle חדש.

חזרה

ImageCropStyle – ערך ריק של ImageCropStyle.


newKeyValue()

יצירת KeyValue חדש.

חזרה

KeyValue – KeyValue ריק.


newLinkPreview()

יצירת LinkPreview חדש.

const decoratedText =
    CardService.newDecoratedText().setTopLabel('Hello').setText('Hi!');

const cardSection = CardService.newCardSection().addWidget(decoratedText);

const card = CardService.newCardBuilder().addSection(cardSection).build();

const linkPreview = CardService.newLinkPreview().setPreviewCard(card).setTitle(
    'Smart chip title');

חזרה

LinkPreview — תצוגה מקדימה של קישור ריקה.


newMaterialIcon()

יצירת MaterialIcon חדש.

הפיצ'ר זמין באפליקציות של Google Chat ובתוספים של Google Workspace.

const materialIcon =
    CardService.newMaterialIcon().setName('check_box').setFill(true);

const cardSection = CardService.newCardSection();
cardSection.addWidget(
    CardService.newDecoratedText()
        .setStartIcon(CardService.newIconImage().setMaterialIcon(materialIcon))
        .setText('sasha@example.com'),
);

const card = CardService.newCardBuilder()
                 .setHeader(CardService.newCardHeader().setTitle('Card Title'))
                 .addSection(cardSection)
                 .build();

חזרה

MaterialIcon — MaterialIcon ריק.


newNavigation()

יצירת Navigation חדש.

חזרה

Navigation — ניווט ריק.


newNotification()

יצירת Notification חדש.

חזרה

Notification — התראה ריקה.


יצירת OpenLink חדש.

חזרה

OpenLink – OpenLink ריק.


newOverflowMenu()

יצירת OverflowMenu חדש.

זמין באפליקציות של Google Chat. בתצוגה המקדימה למפתחים של תוספים ל-Google Workspace.

const overflowMenuItem = CardService.newOverflowMenuItem();
// Finish building the overflow menu item...

const overflowMenu =
    CardService.newOverflowMenu().addMenuItem(overflowMenuItem);

חזרה

OverflowMenu — תפריט Overflow ריק.


newOverflowMenuItem()

יצירת OverflowMenuItem חדש.

זמין באפליקציות של Google Chat. בתצוגה המקדימה למפתחים של תוספים ל-Google Workspace.

const overflowMenuItem =
    CardService.newOverflowMenuItem()
        .setStartIcon(
            CardService.newIconImage().setIconUrl(
                'https://www.google.com/images/branding/googleg/1x/googleg_standard_color_64dp.png',
                ),
            )
        .setText('Open Link')
        .setOpenLink(
            CardService.newOpenLink().setUrl('https://www.google.com'));

חזרה

OverflowMenuItem – OverflowMenuItem ריק.


newSelectionInput()

יצירת SelectionInput חדש.

חזרה

SelectionInput – ערך ריק של SelectionInput.


newSuggestions()

יצירת Suggestions חדש.

חזרה

Suggestions — חלונית 'הצעות' ריקה.


newSuggestionsResponseBuilder()

יצירת SuggestionsResponseBuilder חדש.

חזרה

SuggestionsResponseBuilder – יצירת SuggestionsResponse ריק.


newSwitch()

יצירת Switch חדש.

חזרה

Switch — מתג ריק.


newTextButton()

יצירת TextButton חדש.

חזרה

TextButton — TextButton ריק.


newTextInput()

יצירת TextInput חדש.

חזרה

TextInput — רכיב TextInput ריק.


newTextParagraph()

יצירת TextParagraph חדש.

חזרה

TextParagraph — TextParagraph ריק.


newTimePicker()

יצירת TimePicker חדש.

חזרה

TimePicker — חלונית TimePicker ריקה.


newUniversalActionResponseBuilder()

יצירת UniversalActionResponseBuilder חדש.

חזרה

UniversalActionResponseBuilder – ה-builder הריק של UniversalActionResponse.


newUpdateDraftActionResponseBuilder()

יצירת UpdateDraftActionResponseBuilder חדש.

חזרה

UpdateDraftActionResponseBuilder – אובייקט UpdateDraftActionResponseBuilder ריק.


newUpdateDraftBccRecipientsAction()

יצירת UpdateDraftBccRecipientsAction חדש.

חזרה

UpdateDraftBccRecipientsAction – אירוע UpdateDraftBccRecipientsAction ריק.


newUpdateDraftBodyAction()

יצירת UpdateDraftBodyAction חדש.

חזרה

UpdateDraftBodyAction – UpdateDraftBodyAction ריק.


newUpdateDraftCcRecipientsAction()

יצירת UpdateDraftCcRecipientsAction חדש.

חזרה

UpdateDraftCcRecipientsAction – פעולה ריקה מסוג UpdateDraftCcRecipientsAction.


newUpdateDraftSubjectAction()

יצירת UpdateDraftSubjectAction חדש.

חזרה

UpdateDraftSubjectAction – אובייקט UpdateDraftSubjectAction ריק.


newUpdateDraftToRecipientsAction()

יצירת UpdateDraftToRecipientsAction חדש.

חזרה

UpdateDraftToRecipientsAction — אובייקט UpdateDraftToRecipientsAction ריק.


newValidation()

יצירת Validation חדש.

הפיצ'ר זמין באפליקציות של Google Chat ובתוספים של Google Workspace.

const validation =
    CardService.newValidation().setCharacterLimit(5).setInputType(
        CardService.InputType.EMAIL);

חזרה

Validation — אימות ריק.