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

Represents a card header. For an example in Google Chat apps, see Add a header. Google Workspace Add-ons and Chat apps:

Attributes

  • imageAltText (type: String.t, default: nil) - The alternative text of this image that's used for accessibility.
  • imageType (type: String.t, default: nil) - The shape used to crop the image. Google Workspace Add-ons and Chat apps:
  • imageUrl (type: String.t, default: nil) - The HTTPS URL of the image in the card header.
  • subtitle (type: String.t, default: nil) - The subtitle of the card header. If specified, appears on its own line below the title.
  • title (type: String.t, default: nil) - Required. The title of the card header. The header has a fixed height: if both a title and subtitle are specified, each takes up one line. If only the title is specified, it takes up both lines.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Chat.V1.Model.GoogleAppsCardV1CardHeader{
  imageAltText: String.t() | nil,
  imageType: String.t() | nil,
  imageUrl: 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.