Class GoogleAppsCardV1Section
A section contains a collection of widgets that are rendered vertically in the order that they're specified. Google Workspace Add-ons and Chat apps:
Implements
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1.Data
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class GoogleAppsCardV1Section : IDirectResponseSchema
Properties
CollapseControl
Optional. Define the expand and collapse button of the section. This button will be shown only if the section is collapsible. If this field isn't set, the default button is used. Google Chat apps:
Declaration
[JsonProperty("collapseControl")]
public virtual GoogleAppsCardV1CollapseControl CollapseControl { get; set; }
Property Value
Type | Description |
---|---|
GoogleAppsCardV1CollapseControl |
Collapsible
Indicates whether this section is collapsible. Collapsible sections hide some or all widgets, but users can
expand the section to reveal the hidden widgets by clicking Show more. Users can hide the widgets again
by clicking Show less. To determine which widgets are hidden, specify uncollapsibleWidgetsCount
.
Declaration
[JsonProperty("collapsible")]
public virtual bool? Collapsible { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Header
Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
Declaration
[JsonProperty("header")]
public virtual string Header { get; set; }
Property Value
Type | Description |
---|---|
string |
UncollapsibleWidgetsCount
The number of uncollapsible widgets which remain visible even when a section is collapsed. For example, when
a section contains five widgets and the uncollapsibleWidgetsCount
is set to 2
, the first two widgets are
always shown and the last three are collapsed by default. The uncollapsibleWidgetsCount
is taken into
account only when collapsible
is true
.
Declaration
[JsonProperty("uncollapsibleWidgetsCount")]
public virtual int? UncollapsibleWidgetsCount { get; set; }
Property Value
Type | Description |
---|---|
int? |
Widgets
All the widgets in the section. Must contain at least one widget.
Declaration
[JsonProperty("widgets")]
public virtual IList<GoogleAppsCardV1Widget> Widgets { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleAppsCardV1Widget> |