複数選択メニューを使用する 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 アドオンでは利用できません。
パラメータ
名前 | 型 | 説明 |
---|---|---|
chatClientDataSource | ChatClientDataSource | 設定するデータソース。 |
リターン
HostAppDataSource
- チェーン用のこのオブジェクト。