Google Chat V1 API - Class Google::Apps::Card::V1::DecoratedText (v0.1.2)

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.

Google Workspace Add-ons and Chat apps:

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#bottom_label

def bottom_label() -> ::String
Returns
  • (::String) — The text that appears below text. Always wraps.

#bottom_label=

def bottom_label=(value) -> ::String
Parameter
  • value (::String) — The text that appears below text. Always wraps.
Returns
  • (::String) — The text that appears below text. Always wraps.

#button

def button() -> ::Google::Apps::Card::V1::Button
Returns

#button=

def button=(value) -> ::Google::Apps::Card::V1::Button
Parameter
Returns

#end_icon

def end_icon() -> ::Google::Apps::Card::V1::Icon
Returns

#end_icon=

def end_icon=(value) -> ::Google::Apps::Card::V1::Icon
Parameter
Returns

#icon

def icon() -> ::Google::Apps::Card::V1::Icon
Returns

#icon=

def icon=(value) -> ::Google::Apps::Card::V1::Icon
Parameter
Returns

#on_click

def on_click() -> ::Google::Apps::Card::V1::OnClick
Returns

#on_click=

def on_click=(value) -> ::Google::Apps::Card::V1::OnClick
Parameter
Returns

#start_icon

def start_icon() -> ::Google::Apps::Card::V1::Icon
Returns

#start_icon=

def start_icon=(value) -> ::Google::Apps::Card::V1::Icon
Parameter
Returns

#switch_control

def switch_control() -> ::Google::Apps::Card::V1::DecoratedText::SwitchControl
Returns

#switch_control=

def switch_control=(value) -> ::Google::Apps::Card::V1::DecoratedText::SwitchControl
Parameter
Returns

#text

def text() -> ::String
Returns

#text=

def text=(value) -> ::String
Parameter
Returns

#top_label

def top_label() -> ::String
Returns
  • (::String) — The text that appears above text. Always truncates.

#top_label=

def top_label=(value) -> ::String
Parameter
  • value (::String) — The text that appears above text. Always truncates.
Returns
  • (::String) — The text that appears above text. Always truncates.

#wrap_text

def wrap_text() -> ::Boolean
Returns
  • (::Boolean) — The wrap text setting. If true, the text wraps and displays on multiple lines. Otherwise, the text is truncated.

    Only applies to text, not topLabel and bottomLabel.

#wrap_text=

def wrap_text=(value) -> ::Boolean
Parameter
  • 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, not topLabel and bottomLabel.

Returns
  • (::Boolean) — The wrap text setting. If true, the text wraps and displays on multiple lines. Otherwise, the text is truncated.

    Only applies to text, not topLabel and bottomLabel.