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

A section contains a collection of widgets that are rendered vertically in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there is currently no need for layout properties, for example, float.

Attributes

  • collapsible (type: boolean(), default: nil) - Indicates whether this section is collapsible. If a section is collapsible, the description must be given.
  • header (type: String.t, default: nil) - The header of the section. Formatted text is supported.
  • uncollapsibleWidgetsCount (type: integer(), default: nil) - The number of uncollapsible widgets. For example, when a section contains five widgets and the numUncollapsibleWidget is set to 2, the first two widgets are always shown and the last three are collapsed as default. The numUncollapsibleWidget is taken into account only when collapsible is set to true.
  • widgets (type: list(GoogleApi.Chat.V1.Model.GoogleAppsCardV1Widget.t), default: nil) - A section must contain at least 1 widget.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

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

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.