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

An item that users can select in a selection input, such as a checkbox or switch. Google Workspace Add-ons and Chat apps:

Attributes

  • bottomText (type: String.t, default: nil) - For multiselect menus, a text description or label that's displayed below the item's text field.
  • selected (type: boolean(), default: nil) - Whether the item is selected by default. If the selection input only accepts one value (such as for radio buttons or a dropdown menu), only set this field for one item.
  • startIconUri (type: String.t, default: nil) - For multiselect menus, the URL for the icon displayed next to the item's text field. Supports PNG and JPEG files. Must be an HTTPS URL. For example, https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png.
  • text (type: String.t, default: nil) - The text that identifies or describes the item to users.
  • value (type: String.t, default: nil) - The value associated with this item. The client should use this as a form input value. For details about working with form inputs, see Receive form data.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Chat.V1.Model.GoogleAppsCardV1SelectionItem{
  bottomText: String.t() | nil,
  selected: boolean() | nil,
  startIconUri: String.t() | nil,
  text: String.t() | nil,
  value: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.