Google Chat V1 API - Class Google::Apps::Card::V1::TextParagraph (v0.17.0)

Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::TextParagraph.

A paragraph of text that supports formatting. For an example in Google Chat apps, see Add a paragraph of formatted text. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace add-ons.

Google Workspace add-ons and Chat apps:

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#max_lines

def max_lines() -> ::Integer
Returns
  • (::Integer) — The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a show more button. If the text is equal or shorter than the specified maximum number of lines, a show more button isn't displayed.

    The default value is 0, in which case all context is displayed. Negative values are ignored.

#max_lines=

def max_lines=(value) -> ::Integer
Parameter
  • value (::Integer) — The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a show more button. If the text is equal or shorter than the specified maximum number of lines, a show more button isn't displayed.

    The default value is 0, in which case all context is displayed. Negative values are ignored.

Returns
  • (::Integer) — The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a show more button. If the text is equal or shorter than the specified maximum number of lines, a show more button isn't displayed.

    The default value is 0, in which case all context is displayed. Negative values are ignored.

#text

def text() -> ::String
Returns
  • (::String) — The text that's shown in the widget.

#text=

def text=(value) -> ::String
Parameter
  • value (::String) — The text that's shown in the widget.
Returns
  • (::String) — The text that's shown in the widget.

#text_syntax

def text_syntax() -> ::Google::Apps::Card::V1::TextParagraph::TextSyntax
Returns

#text_syntax=

def text_syntax=(value) -> ::Google::Apps::Card::V1::TextParagraph::TextSyntax
Parameter
Returns