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

A button. Can be a text button or an image button.

Attributes

  • altText (type: String.t, default: nil) - The alternative text used for accessibility. Has no effect when an icon is set; use icon.alt_text instead.
  • color (type: GoogleApi.Chat.V1.Model.Color.t, default: nil) - If set, the button is filled with a solid background.
  • disabled (type: boolean(), default: nil) - If true, the button is displayed in a disabled state and doesn't respond to user actions.
  • icon (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t, default: nil) - The icon image.
  • onClick (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick.t, default: nil) - The action to perform when the button is clicked.
  • text (type: String.t, default: nil) - The text of the button.

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.GoogleAppsCardV1Button{
  altText: String.t() | nil,
  color: GoogleApi.Chat.V1.Model.Color.t() | nil,
  disabled: boolean() | nil,
  icon: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t() | nil,
  onClick: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick.t() | nil,
  text: String.t() | nil
}

Link to this section Functions

Specs

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

Unwrap a decoded JSON object into its complex fields.