Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::DecoratedText.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#bottom_label
def bottom_label() -> ::String-
(::String) — The text that appears below
text. Always wraps.
#bottom_label=
def bottom_label=(value) -> ::String-
value (::String) — The text that appears below
text. Always wraps.
-
(::String) — The text that appears below
text. Always wraps.
#button
def button() -> ::Google::Apps::Card::V1::Button- (::Google::Apps::Card::V1::Button) — A button that a user can click to trigger an action.
#button=
def button=(value) -> ::Google::Apps::Card::V1::Button- value (::Google::Apps::Card::V1::Button) — A button that a user can click to trigger an action.
- (::Google::Apps::Card::V1::Button) — A button that a user can click to trigger an action.
#end_icon
def end_icon() -> ::Google::Apps::Card::V1::Icon-
(::Google::Apps::Card::V1::Icon) — An icon displayed after the text.
#end_icon=
def end_icon=(value) -> ::Google::Apps::Card::V1::Icon-
value (::Google::Apps::Card::V1::Icon) — An icon displayed after the text.
-
(::Google::Apps::Card::V1::Icon) — An icon displayed after the text.
#icon
def icon() -> ::Google::Apps::Card::V1::Icon-
(::Google::Apps::Card::V1::Icon) — Deprecated in favor of
startIcon.
#icon=
def icon=(value) -> ::Google::Apps::Card::V1::Icon-
value (::Google::Apps::Card::V1::Icon) — Deprecated in favor of
startIcon.
-
(::Google::Apps::Card::V1::Icon) — Deprecated in favor of
startIcon.
#on_click
def on_click() -> ::Google::Apps::Card::V1::OnClick-
(::Google::Apps::Card::V1::OnClick) — This action is triggered when users click
topLabelorbottomLabel.
#on_click=
def on_click=(value) -> ::Google::Apps::Card::V1::OnClick-
value (::Google::Apps::Card::V1::OnClick) — This action is triggered when users click
topLabelorbottomLabel.
-
(::Google::Apps::Card::V1::OnClick) — This action is triggered when users click
topLabelorbottomLabel.
#start_icon
def start_icon() -> ::Google::Apps::Card::V1::Icon- (::Google::Apps::Card::V1::Icon) — The icon displayed in front of the text.
#start_icon=
def start_icon=(value) -> ::Google::Apps::Card::V1::Icon- value (::Google::Apps::Card::V1::Icon) — The icon displayed in front of the text.
- (::Google::Apps::Card::V1::Icon) — The icon displayed in front of the text.
#switch_control
def switch_control() -> ::Google::Apps::Card::V1::DecoratedText::SwitchControl- (::Google::Apps::Card::V1::DecoratedText::SwitchControl) — A switch widget that a user can click to change its state and trigger an action.
#switch_control=
def switch_control=(value) -> ::Google::Apps::Card::V1::DecoratedText::SwitchControl- value (::Google::Apps::Card::V1::DecoratedText::SwitchControl) — A switch widget that a user can click to change its state and trigger an action.
- (::Google::Apps::Card::V1::DecoratedText::SwitchControl) — A switch widget that a user can click to change its state and trigger an action.
#text
def text() -> ::String-
(::String) — 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.
#text=
def text=(value) -> ::String-
value (::String) — 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.
-
(::String) — 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.
#top_label
def top_label() -> ::String-
(::String) — The text that appears above
text. Always truncates.
#top_label=
def top_label=(value) -> ::String-
value (::String) — The text that appears above
text. Always truncates.
-
(::String) — The text that appears above
text. Always truncates.
#wrap_text
def wrap_text() -> ::Boolean-
(::Boolean) — The wrap text setting. If
true, the text wraps and displays on multiple lines. Otherwise, the text is truncated.Only applies to
text, nottopLabelandbottomLabel.
#wrap_text=
def wrap_text=(value) -> ::Boolean-
value (::Boolean) — The wrap text setting. If
true, the text wraps and displays on multiple lines. Otherwise, the text is truncated.Only applies to
text, nottopLabelandbottomLabel.
-
(::Boolean) — The wrap text setting. If
true, the text wraps and displays on multiple lines. Otherwise, the text is truncated.Only applies to
text, nottopLabelandbottomLabel.