Class HostAppDataSource

מארחאפליקציהמקורנתונים

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

const chatSpaceDataSource =     CardService.newChatSpaceDataSource().setDefaultToCurrentSpace(true);  const chatClientDataSource =     CardService.newChatClientDataSource().setSpaceDataSource(         chatSpaceDataSource);  const hostAppDataSource =     CardService.newHostAppDataSource().setChatDataSource(chatClientDataSource);

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

Methods

שיטהסוג הערך המוחזרתיאור קצר
setChatDataSource(chatClientDataSource)HostAppDataSourceהגדרת מקור הנתונים מ-Google Chat.

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

setChatDataSource(chatClientDataSource)

הגדרת מקור הנתונים מ-Google Chat.

const chatSpaceDataSource =     CardService.newChatSpaceDataSource().setDefaultToCurrentSpace(true);  const chatClientDataSource =     CardService.newChatClientDataSource().setSpaceDataSource(         chatSpaceDataSource);  const hostAppDataSource =     CardService.newHostAppDataSource().setChatDataSource(chatClientDataSource);
האפשרות הזו זמינה רק באפליקציות של Google Chat. לא זמין לתוספים של Google Workspace.

פרמטרים

שםסוגתיאור
chatClientDataSourceChatClientDataSourceמקור הנתונים שרוצים להגדיר.

חזרה

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