class Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText
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
The formatted text label that shows below the main text. Corresponds to the JSON property `bottomLabel` @return [String]
An icon displayed after the text. Corresponds to the JSON property `endIcon` @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
Deprecated in favor of start_icon. Corresponds to the JSON property `icon` @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
Only the top and bottom label and content region are clickable. Corresponds to the JSON property `onClick` @return [Google::Apis::ChatV1::GoogleAppsCardV1OnClick]
The icon displayed in front of the text. Corresponds to the JSON property `startIcon` @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
A switch widget can be clicked to change its state or trigger an action. Corresponds to the JSON property `switchControl` @return [Google::Apis::ChatV1::GoogleAppsCardV1SwitchControl]
Required. The main widget formatted text. See Text formatting for details. Corresponds to the JSON property `text` @return [String]
The formatted text label that shows above the main text. Corresponds to the JSON property `topLabel` @return [String]
The wrap text setting. If `true`, the text is wrapped and displayed in multiline. Otherwise, the text is truncated. Corresponds to the JSON property `wrapText` @return [Boolean]
The wrap text setting. If `true`, the text is wrapped and displayed in multiline. Otherwise, the text is truncated. Corresponds to the JSON property `wrapText` @return [Boolean]
Public Class Methods
# File lib/google/apis/chat_v1/classes.rb, line 1365 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 1370 def update!(**args) @bottom_label = args[:bottom_label] if args.key?(:bottom_label) @button = args[:button] if args.key?(:button) @end_icon = args[:end_icon] if args.key?(:end_icon) @icon = args[:icon] if args.key?(:icon) @on_click = args[:on_click] if args.key?(:on_click) @start_icon = args[:start_icon] if args.key?(:start_icon) @switch_control = args[:switch_control] if args.key?(:switch_control) @text = args[:text] if args.key?(:text) @top_label = args[:top_label] if args.key?(:top_label) @wrap_text = args[:wrap_text] if args.key?(:wrap_text) end