View Source GoogleApi.Chat.V1.Model.GoogleAppsCardV1Section (google_api_chat v0.34.0)

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:

Attributes

  • collapsible (type: boolean(), default: nil) - 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.
  • header (type: String.t, default: nil) - 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.
  • uncollapsibleWidgetsCount (type: integer(), default: nil) - 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.
  • widgets (type: list(GoogleApi.Chat.V1.Model.GoogleAppsCardV1Widget.t), default: nil) - All the widgets in the section. Must contain at least one widget.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Chat.V1.Model.GoogleAppsCardV1Section{
  collapsible: boolean() | nil,
  header: String.t() | nil,
  uncollapsibleWidgetsCount: integer() | nil,
  widgets: [GoogleApi.Chat.V1.Model.GoogleAppsCardV1Widget.t()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.