View Source GoogleApi.Chat.V1.Model.GoogleAppsCardV1DecoratedText (google_api_chat v0.34.3)
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. For an example in Google Chat apps, see Display text with decorative text. Google Workspace Add-ons and Chat apps:
Attributes
-
bottomLabel
(type:String.t
, default:nil
) - The text that appears belowtext
. Always wraps. -
button
(type:GoogleApi.Chat.V1.Model.GoogleAppsCardV1Button.t
, default:nil
) - A button that a user can click to trigger an action. -
endIcon
(type:GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t
, default:nil
) - An icon displayed after the text. Supports built-in and custom icons. -
icon
(type:GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon.t
, default:nil
) - Deprecated in favor ofstartIcon
. -
onClick
(type:GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick.t
, default:nil
) - This action is triggered when users clicktopLabel
orbottomLabel
. -
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 that a user can click to change its state and trigger an action. -
text
(type:String.t
, default:nil
) - Required. The primary text. Supports simple formatting. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons. -
topLabel
(type:String.t
, default:nil
) - The text that appears abovetext
. Always truncates. -
wrapText
(type:boolean()
, default:nil
) - The wrap text setting. Iftrue
, the text wraps and displays on multiple lines. Otherwise, the text is truncated. Only applies totext
, nottopLabel
andbottomLabel
.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type 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 }
Functions
Unwrap a decoded JSON object into its complex fields.