لمزيد من التفاصيل، راجِع مقالة فتح مربّعات حوار تفاعلية في مستندات Google Chat.
أداة إنشاء لعناصر 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);
الطُرق
| الطريقة | نوع القيمة التي تم إرجاعها | وصف قصير |
|---|---|---|
set | Dialog | تضبط هذه السمة بطاقة Dialog. |
مستندات تفصيلية
setBody(card)
تضبط هذه السمة بطاقة Dialog.
const card = CardService.newCardBuilder() .setHeader(CardService.newCardHeader().setTitle('Card title')) .build(); // Sets the card of the dialog. const dialog = CardService.newDialog().setBody(card);
المَعلمات
| الاسم | النوع | الوصف |
|---|---|---|
card | Card | Card المطلوب استخدامه. |
الإرجاع
Dialog: هذا العنصر، للتسلسل