Class ChatSpaceDataSource

Chat Space Data Source

A data source that populates Google Chat spaces as selection items for a multiselect menu. Only populates spaces that the user is a member of.

 const 
  
 chatSpaceDataSource 
  
 = 
  
 CardService 
 . 
 newChatSpaceDataSource 
 (). 
 setDefaultToCurrentSpace 
 ( 
 true 
 ); 

Only available for Google Chat apps. Not available for Google Workspace add-ons.

Methods

Method Return type Brief description
Chat Space Data Source If set to true , the multi select menu selects the current Google Chat space as an item by default.

Detailed documentation

set Default To Current Space(defaultToCurrentSpace)

If set to true , the multi select menu selects the current Google Chat space as an item by default.

 const 
  
 chatSpaceDataSource 
  
 = 
  
 CardService 
 . 
 newChatSpaceDataSource 
 (). 
 setDefaultToCurrentSpace 
 ( 
 true 
 ); 
Only available for Google Chat apps. Not available for Google Workspace add-ons.

Parameters

Name Type Description
default To Current Space
Boolean The boolean to be set.

Return

Chat Space Data Source — This object, for chaining.

Create a Mobile Website
View Site in Mobile | Classic
Share by: