GoogleApi.Chat.V1.Model.GoogleAppsCardV1DecoratedText (google_api_chat v0.30.1) View Source

A widget that displays text with optional decorations such as a label above or below the text, an icon in front of the text, a selection widget or a button after the text.

Attributes

  • bottomLabel (type: String.t, default: nil) - The formatted text label that shows below the main text.
  • button (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Button.t, default: nil) - A button that can be clicked to trigger an action.
  • endIcon (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t, default: nil) - An icon displayed after the text.
  • icon (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t, default: nil) - Deprecated in favor of start_icon.
  • onClick (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick.t, default: nil) - Only the top and bottom label and content region are clickable.
  • startIcon (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t, default: nil) - The icon displayed in front of the text.
  • switchControl (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1SwitchControl.t, default: nil) - A switch widget can be clicked to change its state or trigger an action.
  • text (type: String.t, default: nil) - Required. The main widget formatted text. See Text formatting for details.
  • topLabel (type: String.t, default: nil) - The formatted text label that shows above the main text.
  • wrapText (type: boolean(), default: nil) - The wrap text setting. If true, the text is wrapped and displayed in multiline. Otherwise, the text is truncated.

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.GoogleAppsCardV1DecoratedText{
  bottomLabel: String.t() | nil,
  button: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Button.t() | nil,
  endIcon: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t() | nil,
  icon: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t() | nil,
  onClick: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick.t() | nil,
  startIcon: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t() | nil,
  switchControl:
    GoogleApi.Chat.V1.Model.GoogleAppsCardV1SwitchControl.t() | nil,
  text: String.t() | nil,
  topLabel: String.t() | nil,
  wrapText: boolean() | nil
}

Link to this section Functions

Specs

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

Unwrap a decoded JSON object into its complex fields.