View Source GoogleApi.Chat.V1.Model.GoogleAppsCardV1GridItem (google_api_chat v0.34.3)

Represents an item in a grid layout. Items can contain text, an image, or both text and an image. Google Workspace Add-ons and Chat apps:

Attributes

  • id (type: String.t, default: nil) - A user-specified identifier for this grid item. This identifier is returned in the parent grid's onClick callback parameters.
  • image (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1ImageComponent.t, default: nil) - The image that displays in the grid item.
  • layout (type: String.t, default: nil) - The layout to use for the grid item.
  • subtitle (type: String.t, default: nil) - The grid item's subtitle.
  • title (type: String.t, default: nil) - The grid item's title.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Chat.V1.Model.GoogleAppsCardV1GridItem{
  id: String.t() | nil,
  image: GoogleApi.Chat.V1.Model.GoogleAppsCardV1ImageComponent.t() | nil,
  layout: String.t() | nil,
  subtitle: String.t() | nil,
  title: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.